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 #37

Merged
merged 25 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
23b2cdc
feat: consumer nrf_service
a3828162 Apr 24, 2024
f50f25d
feat: add nudm_service.go and nudr_service.go in consumer/
a3828162 Apr 27, 2024
21c90fb
feat: refactor processor ee, pp, callback
a3828162 Apr 29, 2024
aef8bce
feat: refactor uecm api_{SRV}.go and sdm api_{SRV}.go
a3828162 Apr 30, 2024
1e67491
feat: change func name http to handle, add (processor) method
a3828162 Apr 30, 2024
2d42b1a
feat: refactor server, processsor, consumer, router
a3828162 May 13, 2024
b8715f9
Merge branch 'main' into refactor/sbi-logic
a3828162 May 15, 2024
4076213
feat: refactor router
a3828162 May 15, 2024
d2386b3
Merge branch 'refactor/sbi-logic' of github.com:a3828162/udm into ref…
a3828162 May 15, 2024
c563d3e
fix: fix lint error
a3828162 May 15, 2024
dfb8312
feat: move procedure, hand func
a3828162 May 22, 2024
2decf1b
fix: name error
a3828162 May 23, 2024
f066b7c
fix: fix run error, remove unuse line
a3828162 May 26, 2024
e3f5dea
fix: consumer init error, url.Value init error
a3828162 May 27, 2024
bc28dff
fix: add mock app interface & fix unit test
ianchen0119 May 29, 2024
8f668bb
delete: remove legacy code
a3828162 May 29, 2024
76c53ec
fix: fix with PR comment
a3828162 Jun 4, 2024
6cf39c6
fix: fix PR comment & terminate problem
a3828162 Jun 21, 2024
2d138ca
fix: fix PR comment
a3828162 Jun 24, 2024
0465bd4
fix: fix log
a3828162 Jun 24, 2024
4e578fd
fix: fix wrong file name & fix implementation of processor follow sta…
a3828162 Jun 25, 2024
0001050
fix: fix PR comment
a3828162 Jun 25, 2024
d4025e0
fix: fix PR comment
a3828162 Jun 25, 2024
395e622
fix : fix PR comment
a3828162 Jun 26, 2024
972efcf
fix: fix PR comment
a3828162 Jun 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions internal/sbi/api_uecontextmanagement.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,32 +377,32 @@ func (s *Server) HandleUpdateAmf3gppAccess(c *gin.Context) {

// DeregistrationSmsfNon3gppAccess - delete SMSF registration for non 3GPP access
func (s *Server) HandleDeregistrationSmsfNon3gppAccess(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// DeregistrationSmsf3gppAccess - delete the SMSF registration for 3GPP access
func (s *Server) HandleDeregistrationSmsf3gppAccess(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// GetSmsfNon3gppAccess - retrieve the SMSF registration for non-3GPP access information
func (s *Server) HandleGetSmsfNon3gppAccess(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// RegistrationSmsfNon3gppAccess - register as SMSF for non-3GPP access
func (s *Server) HandleRegistrationSmsfNon3gppAccess(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// UpdateSMSFReg3GPP - register as SMSF for 3GPP access
func (s *Server) HandleUpdateSMSFReg3GPP(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// GetSmsf3gppAccess - retrieve the SMSF registration for 3GPP access information
func (s *Server) HandleGetSmsf3gppAccess(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// DeregistrationSmfRegistrations - delete an SMF registration
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions internal/sbi/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
if err != nil && err != http.ErrServerClosed {
logger.SBILog.Errorf("SBI server error: %v", err)
}
logger.SBILog.Warnf("SBI server (listen on %s) stopped", s.httpServer.Addr)
logger.SBILog.Info("SBI server (listen on %s) stopped", s.httpServer.Addr)

Check failure on line 105 in internal/sbi/server.go

View workflow job for this annotation

GitHub Actions / build (1.21)

(*github.com/sirupsen/logrus.Entry).Info call has possible Printf formatting directive %s

Check failure on line 105 in internal/sbi/server.go

View workflow job for this annotation

GitHub Actions / lint (1.21)

printf: (*github.com/sirupsen/logrus.Entry).Info call has possible Printf formatting directive %s (govet)
a3828162 marked this conversation as resolved.
Show resolved Hide resolved
}

func (s *Server) Shutdown() {
Expand Down Expand Up @@ -146,7 +146,7 @@
udmEEGroup := s.router.Group(factory.UdmEeResUriPrefix)
routerAuthorizationCheck := util.NewRouterAuthorizationCheck(models.ServiceName_NUDM_EE)
udmEEGroup.Use(func(c *gin.Context) {
routerAuthorizationCheck.Check(c, udm_context.GetSelf())
routerAuthorizationCheck.Check(c, s.Context())
})
AddService(udmEEGroup, udmEERoutes)

Expand Down
Loading