Documentation
¶
Index ¶
- func AddNfServices(serviceMap *map[models.ServiceName]models.NrfNfManagementNfService, ...)
- func GenerateAccountSessionId() uint32
- func GenerateRatingSessionId() uint32
- func Init()
- func InitChfContext(context *CHFContext)
- type CHFContext
- func (context *CHFContext) AddChfUeToUePool(ue *ChfUe, supi string)
- func (c *CHFContext) AuthorizationCheck(token string, serviceName models.ServiceName) error
- func (context *CHFContext) ChfUeFindBySupi(supi string) (*ChfUe, bool)
- func (c *CHFContext) GetSelfID() string
- func (c *CHFContext) GetTokenCtx(serviceName models.ServiceName, targetNF models.NrfNfManagementNfType) (context.Context, *models.ProblemDetails, error)
- func (context *CHFContext) NewCHFUe(supi string) (*ChfUe, error)
- type ChfUe
- type NFContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNfServices ¶
func AddNfServices( serviceMap *map[models.ServiceName]models.NrfNfManagementNfService, config *factory.Config, context *CHFContext, )
func GenerateAccountSessionId ¶
func GenerateAccountSessionId() uint32
func GenerateRatingSessionId ¶
func GenerateRatingSessionId() uint32
Types ¶
type CHFContext ¶
type CHFContext struct {
NfId string
Name string
Url string
UriScheme models.UriScheme
BindingIPv4 string
RegisterIPv4 string
SBIPort int
NfService map[models.ServiceName]models.NrfNfManagementNfService
RecordSequenceNumber map[string]int64
LocalRecordSequenceNumber uint64
NrfUri string
NrfCertPem string
UePool sync.Map
OAuth2Required bool
RatingCfg *sm.Settings
AbmfCfg *sm.Settings
RatingSessionIdGenerator *idgenerator.IDGenerator
AccountSessionIdGenerator *idgenerator.IDGenerator
sync.Mutex
}
func GetSelf ¶
func GetSelf() *CHFContext
func (*CHFContext) AddChfUeToUePool ¶
func (context *CHFContext) AddChfUeToUePool(ue *ChfUe, supi string)
func (*CHFContext) AuthorizationCheck ¶
func (c *CHFContext) AuthorizationCheck(token string, serviceName models.ServiceName) error
func (*CHFContext) ChfUeFindBySupi ¶
func (context *CHFContext) ChfUeFindBySupi(supi string) (*ChfUe, bool)
func (*CHFContext) GetSelfID ¶
func (c *CHFContext) GetSelfID() string
func (*CHFContext) GetTokenCtx ¶
func (c *CHFContext) GetTokenCtx(serviceName models.ServiceName, targetNF models.NrfNfManagementNfType) ( context.Context, *models.ProblemDetails, error, )
type ChfUe ¶
type ChfUe struct {
Supi string
RatingGroups []int32
QuotaValidityTime int32
VolumeLimit int32
VolumeLimitPDU int32
VolumeThresholdRate float32
NotifyUri string
RecordSequenceNumber int64
// ABMF
ReservedQuota map[int32]int64
UnitCost map[int32]uint32
AcctRequestNum map[int32]uint32
AbmfClient *sm.Client
AbmfMux *sm.StateMachine
AcctChan chan *diam.Message
AcctSessionId uint32
// Rating
RatingClient *sm.Client
RatingMux *sm.StateMachine
RatingChan chan *diam.Message
RatingType map[int32]charging_datatype.RequestSubType
RateSessionId uint32
Records []*cdrType.CHFRecord
// lock
Cdr map[string]*cdrType.CHFRecord
CULock sync.Mutex
}
func (*ChfUe) FindRatingGroup ¶
Click to show internal directories.
Click to hide internal directories.