context

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIPv4Uri

func GetIPv4Uri() string

func Init

func Init()

func NewInfluenceDataSubscriptionId

func NewInfluenceDataSubscriptionId() string

Types

type EeSubscriptionCollection

type EeSubscriptionCollection struct {
	EeSubscriptions      *models.EeSubscription
	AmfSubscriptionInfos []models.AmfSubscriptionInfo
}

type NFContext

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

type UDRContext

type UDRContext struct {
	Name                                    string
	UriScheme                               models.UriScheme
	BindingIPv4                             string
	SBIPort                                 int
	NfService                               map[models.ServiceName]models.NfService
	RegisterIPv4                            string // IP register to NRF
	HttpIPv6Address                         string
	NfId                                    string
	NrfUri                                  string
	NrfCertPem                              string
	EeSubscriptionIDGenerator               int
	SdmSubscriptionIDGenerator              int
	SubscriptionDataSubscriptionIDGenerator int
	PolicyDataSubscriptionIDGenerator       int
	InfluenceDataSubscriptionIDGenerator    *rand.Rand
	UESubsCollection                        sync.Map // map[ueId]*UESubsData
	UEGroupCollection                       sync.Map // map[ueGroupId]*UEGroupSubsData
	SubscriptionDataSubscriptions           map[subsId]*models.SubscriptionDataSubscriptions
	PolicyDataSubscriptions                 map[subsId]*models.PolicyDataSubscription
	InfluenceDataSubscriptions              sync.Map

	OAuth2Required bool
	// contains filtered or unexported fields
}

func GetSelf

func GetSelf() *UDRContext

Create new UDR context

func (*UDRContext) AuthorizationCheck

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

func (*UDRContext) GetIPv4GroupUri

func (context *UDRContext) GetIPv4GroupUri(udrServiceType UDRServiceType) string

func (*UDRContext) GetTokenCtx

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

func (*UDRContext) NewAppDataInfluDataSubscriptionID

func (context *UDRContext) NewAppDataInfluDataSubscriptionID() uint64

func (*UDRContext) Reset

func (context *UDRContext) Reset()

Reset UDR Context

type UDRServiceType

type UDRServiceType int
const (
	NUDR_DR UDRServiceType = iota
)

type UEGroupSubsData

type UEGroupSubsData struct {
	EeSubscriptions map[subsId]*models.EeSubscription
}

type UESubsData

type UESubsData struct {
	EeSubscriptionCollection map[subsId]*EeSubscriptionCollection
	SdmSubscriptions         map[subsId]*models.SdmSubscription
}

Jump to

Keyboard shortcuts

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