amf_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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxChannel int = 100000
)

Variables

View Source
var AmfChannel chan HandlerMessage

Functions

func SendHttpResponseMessage

func SendHttpResponseMessage(channel chan HandlerResponseMessage, header http.Header, status int, body interface{})

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

func SendMessage

func SendMessage(msg HandlerMessage)

Types

type Event

type Event int
const (
	EventNGAPMessage Event = iota
	EventNGAPAcceptConn
	EventNGAPCloseConn
	EventN1N2MessageTransfer
	EventN1N2MessageTransferStatus
	EventProvideDomainSelectionInfo
	EventProvideLocationInfo
	EventN1N2MessageSubscribe
	EventN1N2MessageUnSubscribe
	EventCreateUEContext
	EventSmContextStatusNotify
	EventUEContextRelease
	EventUEContextTransfer
	EventEBIAssignment
	EventAMFStatusChangeSubscribe
	EventGMMT3513
	EventGMMT3565
	EventGMMT3560ForAuthenticationRequest
	EventGMMT3560ForSecurityModeCommand
	EventGMMT3550
	EventAMFStatusChangeUnSubscribe
	EventAMFStatusChangeSubscribeModfy
	EventRegistrationStatusUpdate
	EventGMMT3522
	EventAmPolicyControlUpdateNotifyUpdate
	EventAmPolicyControlUpdateNotifyTerminate
	EventOAMRegisteredUEContext
)

type EventGMMT3522Value

type EventGMMT3522Value struct {
	RanUe                  *amf_context.RanUe
	AccessType             uint8
	ReRegistrationRequired bool
	Cause5GMM              uint8
}

type EventGMMT3550Value

type EventGMMT3550Value struct {
	AmfUe                       *amf_context.AmfUe
	AccessType                  models.AccessType
	PDUSessionStatus            *[16]bool
	ReactivationResult          *[16]bool
	ErrPduSessionId             []uint8
	ErrCause                    []uint8
	PduSessionResourceSetupList *ngapType.PDUSessionResourceSetupListCxtReq
}

type EventGMMT3560ValueForSecurityCommand

type EventGMMT3560ValueForSecurityCommand struct {
	RanUe      *amf_context.RanUe
	EapSuccess bool
	EapMessage string
}

type EventN1N2MessageSubscribeValue

type EventN1N2MessageSubscribeValue struct {
	UeContextId string
	Request     models.UeN1N2InfoSubscriptionCreateData
	RequestUri  string
}

type EventN1N2MessageTransferStatusValue

type EventN1N2MessageTransferStatusValue struct {
	UeContextId string
	RequestUri  string
}

type EventN1N2MessageTransferValue

type EventN1N2MessageTransferValue struct {
	UeContextId string
	Request     models.N1N2MessageTransferRequest
	RequestUri  string
}

type EventProvideDomainSelectionInfoValue

type EventProvideDomainSelectionInfoValue struct {
	UeContextId        string
	RequestUri         string
	UeContextInfoClass string
}

type EventProvideLocationInfoValue

type EventProvideLocationInfoValue struct {
	UeContextId string
	Request     models.RequestLocInfo
	RequestUri  string
}

type HandlerMessage

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

func NewHandlerMessage

func NewHandlerMessage(event Event, httpRequest *http_wrapper.Request) (msg HandlerMessage)

type HandlerResponseMessage

type HandlerResponseMessage struct {
	HTTPResponse *http_wrapper.Response
}

type HttpResponseMessageType

type HttpResponseMessageType string

Jump to

Keyboard shortcuts

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