Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: NRF Server & processor #40

Closed
wants to merge 18 commits into from
Closed

Conversation

KunLee76
Copy link
Contributor

Server

  • copy server side code
  • implement server structure & refactor api_{SVC}.go

Processor

  • new processor/processor.go
  • modify accesstoken.go , nfdiscovery.go & nfmanagement.go

@ianchen0119
Copy link
Contributor

Hi @KunLee76

Please use go mod tidy to renew go.mod & go.sum.
Besides, please help to fix errors reported by CI workflow.

Thanks!

internal/sbi/server.go Outdated Show resolved Hide resolved
Comment on lines +20 to +24
type HandlerResponse struct {
Status int
Headers map[string][]string
Body interface{}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need this

pkg/service/init.go Outdated Show resolved Hide resolved
internal/sbi/processor/accesstoken.go Outdated Show resolved Hide resolved
internal/sbi/api_discovery.go Outdated Show resolved Hide resolved
internal/sbi/server.go Outdated Show resolved Hide resolved
@andy89923
Copy link
Contributor

Remember to remove unused code.

@KunLee76 KunLee76 force-pushed the feat/r17 branch 2 times, most recently from d71cf91 to e26359c Compare June 12, 2024 06:46
Copy link
Contributor

@andy89923 andy89923 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the following interface

  • pkg/app/app.go

return nil
}

func (s *Server) buildAndSendHttpResponse(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't use this.

}
}

func buildHttpResponseHeader(gc *gin.Context, rsp *httpwrapper.Response) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't use this.

@@ -30,6 +30,7 @@ const (
NrfSbiDefaultScheme = "https"
NrfNfmResUriPrefix = "/nnrf-nfm/v1"
NrfDiscResUriPrefix = "/nnrf-disc/v1"
NrfAccTokenResUriPrefix = ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants