credit_control

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RAT_WLAN   = 0
	RAT_EUTRAN = 1004
)
View Source
const (
	IPCAN_3GPP    = 5
	IPCAN_Non3GPP = 6
)

Variables

This section is empty.

Functions

func AddIMSIPrefix

func AddIMSIPrefix(imsi string) string

func NewASRHandler

func NewASRHandler(diamClient *diameter.Client, cloudRegistry service_registry.GatewayRegistry) diam.Handler

func RemoveIMSIPrefix

func RemoveIMSIPrefix(imsi string) string

Types

type CreditRequestType

type CreditRequestType uint8
const (
	CRTInit      CreditRequestType = 0x01
	CRTUpdate    CreditRequestType = 0x02
	CRTTerminate CreditRequestType = 0x03

	SessionProxyServiceName = "session_proxy"
)

type GrantedServiceUnit

type GrantedServiceUnit struct {
	TotalOctets  *uint64 `avp:"CC-Total-Octets"`
	InputOctets  *uint64 `avp:"CC-Input-Octets"`
	OutputOctets *uint64 `avp:"CC-Output-Octets"`
}

func (*GrantedServiceUnit) IsEmpty

func (gsu *GrantedServiceUnit) IsEmpty() bool

func (*GrantedServiceUnit) ToProto

func (gsu *GrantedServiceUnit) ToProto() *protos.GrantedUnits

type IPCANType

type IPCANType int

type RATType

type RATType int

type RequestKey

type RequestKey struct {
	Namespace     RequestKeyNamespace
	SessionID     string
	RequestNumber uint32
}

func GetRequestKey

func GetRequestKey(ns RequestKeyNamespace, sessionID string, requestNumber uint32) RequestKey

GetRequestKey generates request tracking key based on Namespace, session ID & request number

type RequestKeyNamespace

type RequestKeyNamespace int
const (
	None RequestKeyNamespace = iota
	Gx
	Gy
)

type SubscriptionIDType

type SubscriptionIDType uint8
const (
	EndUserE164 SubscriptionIDType = 0x0
	EndUserIMSI SubscriptionIDType = 0x1
)

Directories

Path Synopsis
CreditControl constants and structs to be used in sending/receiving messages GyClient is a client to send Credit Control Request messages over diameter And receive Credit Control Answer messages in response
CreditControl constants and structs to be used in sending/receiving messages GyClient is a client to send Credit Control Request messages over diameter And receive Credit Control Answer messages in response

Jump to

Keyboard shortcuts

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