-
Notifications
You must be signed in to change notification settings - Fork 50
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
Conversation
Hi @KunLee76 Please use Thanks! |
type HandlerResponse struct { | ||
Status int | ||
Headers map[string][]string | ||
Body interface{} | ||
} |
There was a problem hiding this comment.
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
Remember to remove unused code. |
d71cf91
to
e26359c
Compare
There was a problem hiding this 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
internal/sbi/server.go
Outdated
return nil | ||
} | ||
|
||
func (s *Server) buildAndSendHttpResponse( |
There was a problem hiding this comment.
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.
internal/sbi/server.go
Outdated
} | ||
} | ||
|
||
func buildHttpResponseHeader(gc *gin.Context, rsp *httpwrapper.Response) { |
There was a problem hiding this comment.
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 = "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
Server
api_{SVC}.go
Processor
processor/processor.go
accesstoken.go
,nfdiscovery.go
&nfmanagement.go