context

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const NRF_PORT = 29510

Variables

This section is empty.

Functions

func GetIpv4Uri

func GetIpv4Uri() string

func Init added in v1.2.1

func Init()

Initialize NSSF context with default value

func InitNssfContext

func InitNssfContext()

Initialize NSSF context with configuration factory

Types

type NFContext added in v1.2.1

type NFContext interface {
	AuthorizationCheck(token string, serviceName models.ServiceName) error
}

type NSSFContext

type NSSFContext struct {
	NfId         string
	Name         string
	UriScheme    models.UriScheme
	RegisterIPv4 string
	// HttpIpv6Address string
	BindingIPv4       string
	SBIPort           int
	NfService         map[models.ServiceName]models.NrfNfManagementNfService
	NrfUri            string
	NrfCertPem        string
	SupportedPlmnList []models.PlmnId
	OAuth2Required    bool
}

func GetSelf added in v1.2.1

func GetSelf() *NSSFContext

func (*NSSFContext) AuthorizationCheck added in v1.2.1

func (c *NSSFContext) AuthorizationCheck(token string, serviceName models.ServiceName) error

func (*NSSFContext) GetTokenCtx added in v1.2.1

func (c *NSSFContext) GetTokenCtx(serviceName models.ServiceName, targetNF models.NrfNfManagementNfType) (
	context.Context, *models.ProblemDetails, error,
)