rest_api

package
v0.0.0-...-b788d5e Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 8 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 Deregistration

func Deregistration(c *gin.Context)

func Index

func Index(c *gin.Context)

Index is the index handler.

func Info

func Info(c *gin.Context)

func NewRouter

func NewRouter() *gin.Engine

NewRouter returns a new router.

func Ping

func Ping(c *gin.Context)

func Registration

func Registration(c *gin.Context)

Types

type RegistrationData

type RegistrationData struct {
	AuthenticationMethod models.AuthMethod `json:"authenticationMethod" yaml:"authenticationMethod" bson:"authenticationMethod" mapstructure:"AuthenticationMethod"`
	SupiOrSuci           string            `json:"supiOrSuci" yaml:"supiOrSuci" bson:"supiOrSuci" mapstructure:"SupiOrSuci"`
	K                    string            `json:"k" yaml:"k" bson:"k" mapstructure:"K"`
	OpcType              string            `json:"opcType" yaml:"opcType" bson:"opcType" mapstructure:"OpcType"`
	Opc                  string            `json:"opc" yaml:"opc" bson:"opc" mapstructure:"Opc"`
	PlmnId               string            `json:"plmnid" yaml:"plmnid" bson:"plmnid" mapstructure:"plmnid"`
	ServingNetworkName   string            `json:"servingNetworkName" yaml:"servingNetworkName" bson:"servingNetworkName" mapstructure:"ServingNetworkName"`
	Dnn                  string            `json:"dnn" yaml:"dnn" bson:"dnn" mapstructure:"dnn"`
	N3IWFIpAddress       string            `json:"n3IWFIpAddress" yaml:"n3IWFIpAddress" bson:"n3IWFIpAddress" mapstructure:"N3IWFIpAddress"`
	SNssai               *models.Snssai    `json:"SNssai" yaml:"SNssai" bson:"SNssai" mapstructure:"SNssai"`
	IKEBindAddress       string            `json:"ikeBindAddress" yaml:"ikeBindAddress" bson:"ikeBindAddress" mapstructure:"IKEBindAddress"`
	PDUSessionID         uint8             `json:"PDUSessionID,string" yaml:"PDUSessionID" bson:"PDUSessionID" mapstructure:"PDUSessionID"`
	GREAddress           string            `json:"GREAddress" yaml:"GREAddress" bson:"GREAddress" mapstructure:"GREAddress"`
}

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