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" )
Click to show internal directories.
Click to hide internal directories.