sbi

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	Name    string
	Method  string
	Pattern string
	APIFunc gin.HandlerFunc
}

type Server

type Server struct {
	ServerNrf
	// contains filtered or unexported fields
}

func NewServer

func NewServer(nrf ServerNrf, tlsKeyLogPath string) (*Server, error)

func (*Server) DecodeNfProfile

func (s *Server) DecodeNfProfile(source interface{}, format string) (models.NfProfile, error)

DecodeNfProfile - Only support []map[string]interface to []models.NfProfile

func (*Server) GetLocalIp

func (s *Server) GetLocalIp() string

func (*Server) GetNrfInfo

func (s *Server) GetNrfInfo() *models.NrfInfo

func (*Server) HTTPAccessTokenRequest

func (s *Server) HTTPAccessTokenRequest(c *gin.Context)

AccessTokenRequest - Access Token Request

func (*Server) HTTPCreateSubscription

func (s *Server) HTTPCreateSubscription(c *gin.Context)

CreateSubscription - Create a new subscription

func (*Server) HTTPDeregisterNFInstance

func (s *Server) HTTPDeregisterNFInstance(c *gin.Context)

DeregisterNFInstance - Deregisters a given NF Instance

func (*Server) HTTPGetNFInstance

func (s *Server) HTTPGetNFInstance(c *gin.Context)

GetNFInstance - Read the profile of a given NF Instance

func (*Server) HTTPGetNFInstances

func (s *Server) HTTPGetNFInstances(c *gin.Context)

GetNFInstances - Retrieves a collection of NF Instances

func (*Server) HTTPRegisterNFInstance

func (s *Server) HTTPRegisterNFInstance(c *gin.Context)

RegisterNFInstance - Register a new NF Instance

func (*Server) HTTPRemoveSubscription

func (s *Server) HTTPRemoveSubscription(c *gin.Context)

RemoveSubscription - Deletes a subscription

func (*Server) HTTPSearchNFInstances

func (s *Server) HTTPSearchNFInstances(c *gin.Context)

SearchNFInstances - Search a collection of NF Instances

func (*Server) HTTPUpdateNFInstance

func (s *Server) HTTPUpdateNFInstance(c *gin.Context)

UpdateNFInstance - Update NF Instance profile

func (*Server) HTTPUpdateSubscription

func (s *Server) HTTPUpdateSubscription(c *gin.Context)

UpdateSubscription - Updates a subscription

func (*Server) Run

func (s *Server) Run(wg *sync.WaitGroup) error

func (*Server) Stop

func (s *Server) Stop()

type ServerNrf

type ServerNrf interface {
	app.App

	// Consumer() *consumer.Consumer
	Processor() *processor.Processor
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL