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: App, Server, Processor, Consumer #26

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

HanHongChen
Copy link
Contributor

@HanHongChen HanHongChen commented May 8, 2024

  1. consumer
  • amf_service.go
  • nrf_service.go
  • udr_service.go
  • consumer.go
  • make
  1. service
  • copy server side code
  • implement server structure & refactor sbi_{SVC}.go
  • Add GetCertPemPath() & GetCertKeyPath()
  • Remove Legacy Code
  • RegisterNFInstance()
  1. Processor
  • processor/processor.go
  • change producer to processor
  • tear down response and request
  • run free5gc

@andy89923 andy89923 changed the title Refactor/sbi logic refactor: App, Server, Processor, Consumer May 28, 2024
@andy89923 andy89923 self-requested a review May 28, 2024 04:15
@andy89923
Copy link
Contributor

Is this PR ready for review?

@@ -1,3 +1,4 @@
/bin/
Copy link
Contributor

Choose a reason for hiding this comment

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

why add thins?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

accidentally added

Comment on lines +119 to +129
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,
}))
Copy link
Contributor

Choose a reason for hiding this comment

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

these can be remove

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

Comment on lines +28 to +30
const (
CorsConfigMaxAge = 86400
)
Copy link
Contributor

Choose a reason for hiding this comment

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

remove

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.

None yet

2 participants