nrf_message

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventNFDiscovery                  = "NF Discovery"
	EventNFManagement                 = "NF Management"
	EventNotificationNFRegisted       = "NF Management Notify NF REGISTERED"
	EventNotificationNFDeregisted     = "NF Management Notify NF DEREGISTERED"
	EventNotificationNFProfileChanged = "NF Management Notify NF PROFILE_CHANGED"
	EventAccessToken                  = "AccessToken"
)

Variables

This section is empty.

Functions

func SendHttpResponseMessage

func SendHttpResponseMessage(channel chan HttpResponseMessage, responseType HttpResponseMessageType, args ...interface{})

Send HTTP Response to HTTP handler thread through HTTP channel, args[0] is response payload and args[1:] is Additional Value

Types

type ChannelMessage

type ChannelMessage struct {
	Event       string
	HttpChannel chan HttpResponseMessage // return Http response
	//NgapConn    net.Conn                 // NGAP Connection
	Value interface{} // input/request value
}

func NewHttpChannelMessage

func NewHttpChannelMessage() ChannelMessage

type HandlerMessage

type HandlerMessage struct {
	Event        string
	HTTPRequest  *http_wrapper.Request
	ResponseChan chan HandlerResponseMessage // return Http response
	Value        interface{}                 // input/request value
}

func NewMessage

func NewMessage(event string, httpRequest *http_wrapper.Request) (msg HandlerMessage)

type HandlerResponseMessage

type HandlerResponseMessage struct {
	HTTPResponse *http_wrapper.Response
}

type HttpResponseMessage

type HttpResponseMessage struct {
	Type            HttpResponseMessageType
	Response        interface{}
	AdditionalValue []interface{}
}

type HttpResponseMessageType

type HttpResponseMessageType string
const (
	HttpResponseMessageResponse       HttpResponseMessageType = "HTTP Response"
	HttpResponseMessageResponseError  HttpResponseMessageType = "HTTP Response Error"
	HttpResponseMessageProblemDetails HttpResponseMessageType = "Problem Details"
)

Jump to

Keyboard shortcuts

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