-
Notifications
You must be signed in to change notification settings - Fork 45
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: App, Server, Processor, Consumer #26
base: main
Are you sure you want to change the base?
Conversation
HanHongChen
commented
May 8, 2024
•
edited
edited
- consumer
- amf_service.go
- nrf_service.go
- udr_service.go
- consumer.go
- make
- service
- copy server side code
- implement server structure & refactor sbi_{SVC}.go
- Add GetCertPemPath() & GetCertKeyPath()
- Remove Legacy Code
- RegisterNFInstance()
- Processor
- processor/processor.go
- change producer to processor
- tear down response and request
- run free5gc
…refactor/sbi-logic
6351765
to
c4ec427
Compare
Is this PR ready for review? |
@@ -1,3 +1,4 @@ | |||
/bin/ |
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.
why add thins?
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.
accidentally added
s.router.Use(cors.New(cors.Config{ | ||
AllowMethods: []string{"GET", "POST", "OPTIONS", "PUT", "PATCH", "DELETE"}, | ||
AllowHeaders: []string{ | ||
"Origin", "Content-Length", "Content-Type", "User-Agent", | ||
"Referrer", "Host", "Token", "X-Requested-With", | ||
}, | ||
ExposeHeaders: []string{"Content-Length"}, | ||
AllowCredentials: true, | ||
AllowAllOrigins: true, | ||
MaxAge: CorsConfigMaxAge, | ||
})) |
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.
these can be remove
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.
ok
const ( | ||
CorsConfigMaxAge = 86400 | ||
) |
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.
remove