Documentation ¶
Index ¶
- Constants
- func AddIMSIPrefix(imsi string) string
- func NewASRHandler(diamClient *diameter.Client, cloudRegistry service_registry.GatewayRegistry) diam.Handler
- func RemoveIMSIPrefix(imsi string) string
- type CreditRequestType
- type GrantedServiceUnit
- type IPCANType
- type RATType
- type RequestKey
- type RequestKeyNamespace
- type SubscriptionIDType
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 NewASRHandler ¶
func NewASRHandler(diamClient *diameter.Client, cloudRegistry service_registry.GatewayRegistry) diam.Handler
func RemoveIMSIPrefix ¶
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 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 |
Click to show internal directories.
Click to hide internal directories.