management

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddService

func AddService(engine *gin.Engine) *gin.RouterGroup

func DecodeNfProfile

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

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

func GetNrfInfo

func GetNrfInfo() *models.NrfInfo

func HTTPCreateSubscription

func HTTPCreateSubscription(c *gin.Context)

CreateSubscription - Create a new subscription

func HTTPDeregisterNFInstance

func HTTPDeregisterNFInstance(c *gin.Context)

DeregisterNFInstance - Deregisters a given NF Instance

func HTTPGetNFInstance

func HTTPGetNFInstance(c *gin.Context)

GetNFInstance - Read the profile of a given NF Instance

func HTTPGetNFInstances

func HTTPGetNFInstances(c *gin.Context)

GetNFInstances - Retrieves a collection of NF Instances

func HTTPRegisterNFInstance

func HTTPRegisterNFInstance(c *gin.Context)

RegisterNFInstance - Register a new NF Instance

func HTTPRemoveSubscription

func HTTPRemoveSubscription(c *gin.Context)

RemoveSubscription - Deletes a subscription

func HTTPUpdateNFInstance

func HTTPUpdateNFInstance(c *gin.Context)

UpdateNFInstance - Update NF Instance profile

func HTTPUpdateSubscription

func HTTPUpdateSubscription(c *gin.Context)

UpdateSubscription - Updates a subscription

func Index

func Index(c *gin.Context)

Index is the index handler.

func NewRouter

func NewRouter() *gin.Engine

NewRouter returns a new router.

Types

type Route

type Route struct {
	// Name is the name of this Route.
	Name string
	// Method is the string for the HTTP method. ex) GET, POST etc..
	Method string
	// Pattern is the pattern of the URI.
	Pattern string
	// HandlerFunc is the handler function of this route.
	HandlerFunc gin.HandlerFunc
}

Route is the information for every URI.

type Routes

type Routes []Route

Routes is the list of the generated Route.

Jump to

Keyboard shortcuts

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