processor

package
v0.0.0-...-0406403 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERR_MANDATORY_ABSENT = "Mandatory type is absent"
	ERR_MISS_CONDITION   = "Miss condition"
	ERR_VALUE_INCORRECT  = "Unexpected value is received"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProcedureInfo

type AuthProcedureInfo struct {
}
var (
	UeAuthProcedure AuthProcedureInfo
)

Define every thing you want in this struct, so that you can use them in different message handler

type ConfirmationResourceURI

type ConfirmationResourceURI string
const (
	ConfirmationResourceURI_5_G_AKA     ConfirmationResourceURI = "/5g-aka-confirmation"
	ConfirmationResourceURI_EAP_SESSION ConfirmationResourceURI = "/eap-session"
)

type HandlerResponse

type HandlerResponse struct {
	Status  int
	Headers map[string][]string
	Body    interface{}
}

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(scp scp) (*Processor, error)

func (*Processor) GetAuthSubsData

func (p *Processor) GetAuthSubsData(
	ueId string,
) *HandlerResponse

NOTE: The response from UDR is guaranteed to be correct

func (*Processor) PostGenerateAuthData

func (p *Processor) PostGenerateAuthData(
	supiOrSuci string,
	authInfo models.AuthenticationInfoRequest,
) *HandlerResponse

NOTE: Assume Rand from UDM and ausfInstanceId from AUSF is correct

func (*Processor) PostUeAutentications

func (p *Processor) PostUeAutentications(
	authInfo models.AuthenticationInfo,
) *HandlerResponse

NOTE: The response from AMF is guaranteed to be correct

func (*Processor) PutUeAutenticationsConfirmation

func (p *Processor) PutUeAutenticationsConfirmation(
	authCtxId string,
	confirmationData models.ConfirmationData,
) *HandlerResponse

Jump to

Keyboard shortcuts

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