Documentation
¶
Index ¶
- type ABResponse
- type AccountDebitRequest
- type AccountDebitResponse
- type AcctBalance
- type CCMoney
- type CCUnitType
- type CcRequestType
- type CcSessionFailover
- type ChargeReasonCode
- type CostInformation
- type FinalUnitAction
- type FinalUnitIndication
- type GrantedServiceUnit
- type LowBalanceIndication
- type MonetaryTariff
- type MonetaryTariffAfterValidUnits
- type MultipleServicesCreditControl
- type MultipleServicesIndicator
- type NextMonetaryTariff
- type RateElement
- type RemainingBalance
- type RequestSubType
- type RequestedAction
- type RequestedServiceUnit
- type ScaleFactor
- type ServiceRating
- type ServiceUsageRequest
- type ServiceUsageResponse
- type SubscriptionId
- type SubscriptionIdType
- type TerminationCause
- type UnitCost
- type UnitValue
- type UsedServiceUnit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ABResponse ¶
type ABResponse struct { AcctBalance *AcctBalance `avp:"Acct-Balance"` Counter diam_datatype.Grouped `avp:"Counter"` }
type AccountDebitRequest ¶
type AccountDebitRequest struct { SessionId diam_datatype.UTF8String `avp:"Session-Id"` OriginHost diam_datatype.DiameterIdentity `avp:"Origin-Host"` OriginRealm diam_datatype.DiameterIdentity `avp:"Origin-Realm"` DestinationRealm diam_datatype.DiameterIdentity `avp:"Destination-Realm"` DestinationHost diam_datatype.DiameterIdentity `avp:"Destination-Host"` UserName diam_datatype.OctetString `avp:"User-Name"` OriginStateId diam_datatype.Unsigned32 `avp:"Origin-State-Id"` RequestedAction RequestedAction `avp:"Requested-Action"` AuthApplicationId diam_datatype.Unsigned32 `avp:"Auth-Application-Id"` ServiceContextId diam_datatype.UTF8String `avp:"Service-Context-Id"` CcRequestType CcRequestType `avp:"CC-Request-Type"` CcRequestNumber diam_datatype.Unsigned32 `avp:"CC-Request-Number"` EventTimestamp diam_datatype.Time `avp:"Event-Timestamp"` TerminationCause TerminationCause `avp:"Termination-Cause"` SubscriptionId *SubscriptionId `avp:"Subscription-Id"` ServiceIdentifier diam_datatype.Unsigned32 `avp:"Service-Identifier"` ServiceInformation diam_datatype.Grouped `avp:"Service-Information"` MultipleServicesIndicator MultipleServicesIndicator `avp:"Multiple-Services-Indicator"` ProxyInfo diam_datatype.Grouped `avp:"Proxy-Info"` MultipleServicesCreditControl *MultipleServicesCreditControl `avp:"Multiple-Services-Credit-Control"` }
type AccountDebitResponse ¶
type AccountDebitResponse struct { SessionId diam_datatype.UTF8String `avp:"Session-Id"` ResultCode diam_datatype.Unsigned32 `avp:"Result-Code"` OriginHost diam_datatype.DiameterIdentity `avp:"Origin-Host"` OriginRealm diam_datatype.DiameterIdentity `avp:"Origin-Realm"` AuthApplicationId diam_datatype.Unsigned32 `avp:"Auth-Application-Id"` ServiceContextId diam_datatype.UTF8String `avp:"Service-Context-Id"` CcRequestType CcRequestType `avp:"CC-Request-Type"` CcRequestNumber diam_datatype.Unsigned32 `avp:"CC-Request-Number"` CCSessionFailover CcSessionFailover `avp:"CC-Session-Failover"` CostInformation *CostInformation `avp:"Cost-Information"` LowBalanceIndication LowBalanceIndication `avp:"Low-Balance-Indication"` EventTimestamp diam_datatype.Time `avp:"Event-Timestamp"` RemainingBalance *RemainingBalance `avp:"Remaining-Balance"` ABResponse *ABResponse `avp:"AB-Response"` ProxyInfo diam_datatype.Grouped `avp:"Proxy-Info"` MultipleServicesCreditControl *MultipleServicesCreditControl `avp:"Multiple-Services-Credit-Control"` }
type AcctBalance ¶
type AcctBalance struct { AcctBalanceId diam_datatype.Unsigned64 `avp:"Acct-Balance-Id"` UnitValue *UnitValue `avp:"Unit-Value"` }
type CCMoney ¶
type CCMoney struct { CurrencyCode diam_datatype.Unsigned32 `avp:"Currency-Code"` UnitValue *UnitValue `avp:"Unit-Value"` }
type CCUnitType ¶
type CCUnitType diam_datatype.Enumerated
const ( TIME CCUnitType = 0 MONEY CCUnitType = 1 TOTALOCTETS CCUnitType = 2 INPUTOCTETS CCUnitType = 3 OUTPUTOCTETS CCUnitType = 4 SERVICESPECIFICUNITS CCUnitType = 5 )
type CcRequestType ¶
type CcRequestType diam_datatype.Enumerated
const ( INITIAL_REQUEST CcRequestType = 1 UPDATE_REQUEST CcRequestType = 2 TERMINATION_REQUEST CcRequestType = 3 EVENT_REQUEST CcRequestType = 4 )
type CcSessionFailover ¶
type CcSessionFailover diam_datatype.Enumerated
const ( FAILOVER_NOT_SUPPORTED CcSessionFailover = 0 FAILOVER_SUPPORTED CcSessionFailover = 1 )
type ChargeReasonCode ¶
type ChargeReasonCode diam_datatype.Enumerated
const ( UNKNOWN ChargeReasonCode = 0 USAGE ChargeReasonCode = 1 COMMUNICATION_ATTEMPT_CHARGE ChargeReasonCode = 2 SETUP_CHARGE ChargeReasonCode = 3 ADD_ON_CHARGE ChargeReasonCode = 4 )
type CostInformation ¶
type CostInformation struct { CurrencyCode diam_datatype.Unsigned32 `avp:"Currency-Code"` UnitValue *UnitValue `avp:"Unit-Value"` UnitCost *UnitCost `avp:"Unit-Cost"` }
type FinalUnitAction ¶
type FinalUnitAction diam_datatype.Enumerated
const ( TERMINATE FinalUnitAction = 0 REDIRECT FinalUnitAction = 1 RESTRICT_ACCESS FinalUnitAction = 2 )
type FinalUnitIndication ¶
type FinalUnitIndication struct { FinalUnitAction FinalUnitAction `avp:"Final-Unit-Action"` RestrictionFilterRule diam_datatype.IPFilterRule `avp:"Restriction-Filter-Rule"` FilterId diam_datatype.UTF8String `avp:"Filter-Id"` RedirectServer diam_datatype.Grouped `avp:"Redirect-Server"` }
type GrantedServiceUnit ¶
type GrantedServiceUnit struct { TariffChangeUsage diam_datatype.Enumerated `avp:"Tariff-Change-Usage"` CCTime diam_datatype.Unsigned32 `avp:"CC-Time"` CCMoney *CCMoney `avp:"CC-Money"` CCTotalOctets diam_datatype.Unsigned64 `avp:"CC-Total-Octets"` CCInputOctets diam_datatype.Unsigned64 `avp:"CC-Input-Octets"` CCOutputOctets diam_datatype.Unsigned64 `avp:"CC-Output-Octets"` CCServiceSpecificUnits diam_datatype.Unsigned64 `avp:"CC-Service-Specific-Units"` }
type LowBalanceIndication ¶
type LowBalanceIndication diam_datatype.Enumerated
const ( NOT_APPLICABLE LowBalanceIndication = 0 YES LowBalanceIndication = 1 )
type MonetaryTariff ¶
type MonetaryTariff struct { CurrencyCode diam_datatype.Unsigned32 `avp:"Currency-Code"` ScaleFactor *ScaleFactor `avp:"Scale-Factor"` RateElement *RateElement `avp:"Rate-Element"` }
type MonetaryTariffAfterValidUnits ¶
type MonetaryTariffAfterValidUnits struct { CurrencyCode diam_datatype.Unsigned32 `avp:"Currency-Code"` ScaleFactor *ScaleFactor `avp:"Scale-Factor"` RateElement *RateElement `avp:"Rate-Element"` }
type MultipleServicesCreditControl ¶
type MultipleServicesCreditControl struct { GrantedServiceUnit *GrantedServiceUnit `avp:"Granted-Service-Unit"` RequestedServiceUnit *RequestedServiceUnit `avp:"Requested-Service-Unit"` UsedServiceUnit *UsedServiceUnit `avp:"Used-Service-Unit"` TariffChangeUsage diam_datatype.Enumerated `avp:"Tariff-Change-Usage"` ServiceIdentifier diam_datatype.Unsigned32 `avp:"Service-Identifier"` RatingGroup diam_datatype.Unsigned32 `avp:"Rating-Group"` GSUPoolReference diam_datatype.Grouped `avp:"G-S-U-Pool-Reference"` ValidityTime diam_datatype.Unsigned32 `avp:"Validity-Time"` ResultCode diam_datatype.Unsigned32 `avp:"Result-Code"` FinalUnitIndication *FinalUnitIndication `avp:"Final-Unit-Indication"` }
type MultipleServicesIndicator ¶
type MultipleServicesIndicator diam_datatype.Enumerated
const ( MULTIPLE_SERVICES_NOT_SUPPORTED MultipleServicesIndicator = 0 MULTIPLE_SERVICES_SUPPORTED MultipleServicesIndicator = 1 )
type NextMonetaryTariff ¶
type NextMonetaryTariff struct { CurrencyCode diam_datatype.Unsigned32 `avp:"Currency-Code"` ScaleFactor *ScaleFactor `avp:"Scale-Factor"` RateElement *RateElement `avp:"Rate-Element"` }
type RateElement ¶
type RateElement struct { CCUnitType CCUnitType `avp:"CC-Unit-Type"` ChargeReasonCode ChargeReasonCode `avp:"Charge-Reason-Code"` UnitValue *UnitValue `avp:"Unit-Value"` UnitCost *UnitCost `avp:"Unit-Cost"` UnitQuotaThreshold diam_datatype.Unsigned32 `avp:"Unit-Quota-Threshold"` }
type RemainingBalance ¶
type RemainingBalance struct { UnitValue *UnitValue `avp:"Unit-Value"` CurrencyCode diam_datatype.Unsigned32 `avp:"Currency-Code"` }
type RequestSubType ¶
type RequestSubType diam_datatype.Enumerated
const ( REQ_SUBTYPE_AOC RequestSubType = 0 REQ_SUBTYPE_RESERVE RequestSubType = 1 REQ_SUBTYPE_DEBIT RequestSubType = 2 REQ_SUBTYPE_RELEASE RequestSubType = 3 )
type RequestedAction ¶
type RequestedAction diam_datatype.Enumerated
const ( DIRECT_DEBITING RequestedAction = 0 REFUND_ACCOUNT RequestedAction = 1 CHECK_BALANCE RequestedAction = 2 PRICE_ENQUIRY RequestedAction = 3 )
type RequestedServiceUnit ¶
type RequestedServiceUnit struct { TariffChangeUsage diam_datatype.Enumerated `avp:"Tariff-Change-Usage"` CCTime diam_datatype.Unsigned32 `avp:"CC-Time"` CCMoney *CCMoney `avp:"CC-Money"` CCTotalOctets diam_datatype.Unsigned64 `avp:"CC-Total-Octets"` CCInputOctets diam_datatype.Unsigned64 `avp:"CC-Input-Octets"` CCOutputOctets diam_datatype.Unsigned64 `avp:"CC-Output-Octets"` CCServiceSpecificUnits diam_datatype.Unsigned64 `avp:"CC-Service-Specific-Units"` }
type ScaleFactor ¶
type ScaleFactor struct { ValueDigits diam_datatype.Integer64 `avp:"Value-Digits"` Exponent diam_datatype.Integer32 `avp:"Exponent"` }
type ServiceRating ¶
type ServiceRating struct { ServiceIdentifier diam_datatype.Unsigned32 `avp:"Service-Identifier"` DestinationID diam_datatype.Grouped `avp:"DestinationID"` ServiceInformation diam_datatype.Grouped `avp:"ServiceInformation"` Extension diam_datatype.Grouped `avp:"Extension"` RequestSubType RequestSubType `avp:"RequestSubType"` Price diam_datatype.Unsigned32 `avp:"Price"` BillingInfo diam_datatype.UTF8String `avp:"BillingInfo"` ImpactOnCounter *diam_datatype.Grouped `avp:"ImpactonCounter"` RequestedUnits diam_datatype.Unsigned32 `avp:"RequestedUnits"` ConsumedUnits diam_datatype.Unsigned32 `avp:"ConsumedUnits"` ConsumedUnitsAfterTariffSwitch diam_datatype.Unsigned32 `avp:"ConsumedUnitsAfterTariffSwitch"` TariffSwitchTime diam_datatype.Unsigned32 `avp:"TariffSwitchTime"` MonetaryTariff *MonetaryTariff `avp:"MonetaryTariff"` NextMonetaryTariff *NextMonetaryTariff `avp:"NextMonetaryTariff"` ExpiryTime diam_datatype.Time `avp:"ExpiryTime"` ValidUnits diam_datatype.Unsigned32 `avp:"ValidUnits"` MonetaryTariffAfterValidUnits *MonetaryTariffAfterValidUnits `avp:"MonetaryTariffAfterValidUnits"` MonetaryQuota diam_datatype.Unsigned32 `avp:"MonetaryQuota"` MinimalRequestedUnits diam_datatype.Unsigned32 `avp:"MinimalRequestedUnits"` AllowedUnits diam_datatype.Unsigned32 `avp:"AllowedUnits"` }
type ServiceUsageRequest ¶
type ServiceUsageRequest struct { SessionId diam_datatype.UTF8String `avp:"Session-Id"` OriginHost diam_datatype.DiameterIdentity `avp:"Origin-Host"` OriginRealm diam_datatype.DiameterIdentity `avp:"Origin-Realm"` DestinationRealm diam_datatype.DiameterIdentity `avp:"Destination-Realm"` DestinationHost diam_datatype.DiameterIdentity `avp:"Destination-Host"` VendorSpecificAppId diam_datatype.Grouped `avp:"Vendor-Specific-Application-Id"` UserName diam_datatype.OctetString `avp:"User-Name"` EventTimestamp diam_datatype.Time `avp:"Event-Timestamp"` BeginTime diam_datatype.Time `avp:"BeginTime"` ActualTime diam_datatype.Time `avp:"ActualTime"` SubscriptionId *SubscriptionId `avp:"Subscription-Id"` ServiceRating *ServiceRating `avp:"Service-Rating"` }
type ServiceUsageResponse ¶
type ServiceUsageResponse struct { SessionId diam_datatype.UTF8String `avp:"Session-Id"` OriginHost diam_datatype.DiameterIdentity `avp:"Origin-Host"` OriginRealm diam_datatype.DiameterIdentity `avp:"Origin-Realm"` VendorSpecificAppId diam_datatype.Grouped `avp:"Vendor-Specific-Application-Id"` EventTimestamp diam_datatype.Time `avp:"Event-Timestamp"` ServiceRating *ServiceRating `avp:"Service-Rating"` }
type SubscriptionId ¶
type SubscriptionId struct { SubscriptionIdType SubscriptionIdType `avp:"Subscription-Id-Type"` SubscriptionIdData diam_datatype.UTF8String `avp:"Subscription-Id-Data"` }
type SubscriptionIdType ¶
type SubscriptionIdType diam_datatype.Enumerated
const ( END_USER_E164 SubscriptionIdType = 0 END_USER_IMSI SubscriptionIdType = 1 END_USER_SIP_URI SubscriptionIdType = 2 END_USER_NAI SubscriptionIdType = 3 )
type TerminationCause ¶
type TerminationCause diam_datatype.Enumerated
const ( DIAMETER_LOGOUT TerminationCause = 1 DIAMETER_SERVICE_NOT_PROVIDED TerminationCause = 2 DIAMETER_BAD_ANSWER TerminationCause = 3 DIAMETER_ADMINISTRATIVE TerminationCause = 4 DIAMETER_LINK_BROKEN TerminationCause = 5 DIAMETER_AUTH_EXPIRED TerminationCause = 6 DIAMETER_USER_MOVED TerminationCause = 7 DIAMETER_SESSION_TIMEOUT TerminationCause = 8 )
type UnitCost ¶
type UnitCost struct { ValueDigits diam_datatype.Integer64 `avp:"Value-Digits"` Exponent diam_datatype.Integer32 `avp:"Exponent"` }
type UnitValue ¶
type UnitValue struct { ValueDigits diam_datatype.Integer64 `avp:"Value-Digits"` Exponent diam_datatype.Integer32 `avp:"Exponent"` }
type UsedServiceUnit ¶
type UsedServiceUnit struct { TariffChangeUsage diam_datatype.Enumerated `avp:"Tariff-Change-Usage"` CCTime diam_datatype.Unsigned32 `avp:"CC-Time"` CCMoney *CCMoney `avp:"CC-Money"` CCTotalOctets diam_datatype.Unsigned64 `avp:"CC-Total-Octets"` CCInputOctets diam_datatype.Unsigned64 `avp:"CC-Input-Octets"` CCOutputOctets diam_datatype.Unsigned64 `avp:"CC-Output-Octets"` CCServiceSpecificUnits diam_datatype.Unsigned64 `avp:"CC-Service-Specific-Units"` }
Source Files
¶
- ABResponse.go
- AccountDebitRequest.go
- AccountDebitResponse.go
- AcctBalance.go
- CCMoney.go
- CCSessionFailover.go
- CCUnitType.go
- CcRequestType.go
- ChargeReasonCode.go
- CostInformation.go
- FinalUnitAction.go
- FinalUnitIndication.go
- GrantedServiceUnit.go
- LowBalanceIndication.go
- MonetaryTariff.go
- MonetaryTariffAfterValidUnits.go
- MultipleServicesCreditControl.go
- MultipleServicesIndicator.go
- NextMonetaryTariff.go
- RateElement.go
- RemainingBalance.go
- RequestSubType.go
- RequestedAction.go
- RequestedServiceUnit.go
- ScaleFactor.go
- ServiceRating.go
- ServiceUsageRequest.go
- ServiceUsageResponse.go
- SubscriptionId.go
- SubscriptionIdType.go
- TerminationCause.go
- UnitCost.go
- UnitValue.go
- UsedServiceUnit.go
Click to show internal directories.
Click to hide internal directories.