report

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RPT_TRIG_PERIO = 1 << iota
	RPT_TRIG_VOLTH
	RPT_TRIG_TIMTH
	RPT_TRIG_QUHTI
	RPT_TRIG_START
	RPT_TRIG_STOPT
	RPT_TRIG_DROTH
	RPT_TRIG_LIUSA
	RPT_TRIG_VOLQU
	RPT_TRIG_TIMQU
	RPT_TRIG_ENVCL
	RPT_TRIG_MACAR
	RPT_TRIG_EVETH
	RPT_TRIG_EVEQU
	RPT_TRIG_IPMJL
	RPT_TRIG_QUVTI
	RPT_TRIG_REEMR
	RPT_TRIG_UPINT
)

Reporting Triggers IE bits definition

View Source
const (
	USAR_TRIG_PERIO = 1 << iota
	USAR_TRIG_VOLTH
	USAR_TRIG_TIMTH
	USAR_TRIG_QUHTI
	USAR_TRIG_START
	USAR_TRIG_STOPT
	USAR_TRIG_DROTH
	USAR_TRIG_IMMER
	USAR_TRIG_VOLQU
	USAR_TRIG_TIMQU
	USAR_TRIG_LIUSA
	USAR_TRIG_TERMR
	USAR_TRIG_MONIT
	USAR_TRIG_ENVCL
	USAR_TRIG_MACAR
	USAR_TRIG_EVETH
	USAR_TRIG_EVEQU
	USAR_TRIG_TEBUR
	USAR_TRIG_IPMJL
	USAR_TRIG_QUVTI
	USAR_TRIG_EMRRE
	USAR_TRIG_UPINT
)

Usage Report Trigger IE bits definition

View Source
const (
	TOVOL uint8 = 1 << iota
	ULVOL
	DLVOL
	TONOP
	ULNOP
	DLNOP
)

Volume Measurement IE Flag bits definition

View Source
const (
	APPLY_ACT_DROP = 1 << iota
	APPLY_ACT_FORW
	APPLY_ACT_BUFF
	APPLY_ACT_NOCP
	APPLY_ACT_DUPL
	APPLY_ACT_IPMA
	APPLY_ACT_IPMD
	APPLY_ACT_DFRT
	APPLY_ACT_EDRT
	APPLY_ACT_BDPN
	APPLY_ACT_DDPN
	APPLY_ACT_FSSM
	APPLY_ACT_MBSU
)

Apply Action IE bits definition

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyAction added in v1.2.1

type ApplyAction struct {
	Flags uint16
}

func (*ApplyAction) BDPN added in v1.2.1

func (a *ApplyAction) BDPN() bool

func (*ApplyAction) BUFF added in v1.2.1

func (a *ApplyAction) BUFF() bool

func (*ApplyAction) DDPN added in v1.2.1

func (a *ApplyAction) DDPN() bool

func (*ApplyAction) DFRT added in v1.2.1

func (a *ApplyAction) DFRT() bool

func (*ApplyAction) DROP added in v1.2.1

func (a *ApplyAction) DROP() bool

func (*ApplyAction) DUPL added in v1.2.1

func (a *ApplyAction) DUPL() bool

func (*ApplyAction) EDRT added in v1.2.1

func (a *ApplyAction) EDRT() bool

func (*ApplyAction) FORW added in v1.2.1

func (a *ApplyAction) FORW() bool

func (*ApplyAction) FSSM added in v1.2.1

func (a *ApplyAction) FSSM() bool

func (*ApplyAction) IPMA added in v1.2.1

func (a *ApplyAction) IPMA() bool

func (*ApplyAction) IPMD added in v1.2.1

func (a *ApplyAction) IPMD() bool

func (*ApplyAction) MBSU added in v1.2.1

func (a *ApplyAction) MBSU() bool

func (*ApplyAction) NOCP added in v1.2.1

func (a *ApplyAction) NOCP() bool

func (*ApplyAction) Unmarshal added in v1.2.1

func (a *ApplyAction) Unmarshal(b []byte) error

type BufInfo

type BufInfo struct {
	SEID  uint64
	PDRID uint16
}

type DLDReport

type DLDReport struct {
	PDRID  uint16
	Action uint16
	BufPkt []byte
}

func (DLDReport) Type

func (r DLDReport) Type() ReportType

type DurationMeasure added in v1.0.1

type DurationMeasure struct {
	DurationValue uint64
}

func (*DurationMeasure) IE added in v1.1.0

func (m *DurationMeasure) IE() *ie.IE

type Handler

type Handler interface {
	NotifySessReport(SessReport)
	PopBufPkt(uint64, uint16) ([]byte, bool)
}

type MeasureInformation added in v1.1.0

type MeasureInformation struct {
	MBQE  bool
	INAM  bool
	RADI  bool
	ISTM  bool
	MNOP  bool
	SSPOC bool
	ASPOC bool
	CIAM  bool
}

type MeasureMethod added in v1.1.0

type MeasureMethod struct {
	DURAT bool
	VOLUM bool
	EVENT bool
}

type Report

type Report interface {
	Type() ReportType
}

type ReportType added in v1.0.1

type ReportType int
const (
	DLDR ReportType = iota + 1
	USAR
	ERIR
	UPIR
	TMIR
	SESR
	UISR
)

29244-ga0 8.2.21 Report Type

func (ReportType) String added in v1.0.1

func (t ReportType) String() string

type ReportingTrigger added in v1.1.0

type ReportingTrigger struct {
	Flags uint32
}

func (*ReportingTrigger) DROTH added in v1.1.0

func (r *ReportingTrigger) DROTH() bool

func (*ReportingTrigger) ENVCL added in v1.1.0

func (r *ReportingTrigger) ENVCL() bool

func (*ReportingTrigger) EVEQU added in v1.1.0

func (r *ReportingTrigger) EVEQU() bool

func (*ReportingTrigger) EVETH added in v1.1.0

func (r *ReportingTrigger) EVETH() bool

func (*ReportingTrigger) IE added in v1.1.0

func (r *ReportingTrigger) IE() *ie.IE

func (*ReportingTrigger) IPMJL added in v1.1.0

func (r *ReportingTrigger) IPMJL() bool

func (*ReportingTrigger) LIUSA added in v1.1.0

func (r *ReportingTrigger) LIUSA() bool

func (*ReportingTrigger) MACAR added in v1.1.0

func (r *ReportingTrigger) MACAR() bool

func (*ReportingTrigger) PERIO added in v1.1.0

func (r *ReportingTrigger) PERIO() bool

func (*ReportingTrigger) QUHTI added in v1.1.0

func (r *ReportingTrigger) QUHTI() bool

func (*ReportingTrigger) QUVTI added in v1.1.0

func (r *ReportingTrigger) QUVTI() bool

func (*ReportingTrigger) REEMR added in v1.1.0

func (r *ReportingTrigger) REEMR() bool

func (*ReportingTrigger) START added in v1.1.0

func (r *ReportingTrigger) START() bool

func (*ReportingTrigger) STOPT added in v1.1.0

func (r *ReportingTrigger) STOPT() bool

func (*ReportingTrigger) TIMQU added in v1.1.0

func (r *ReportingTrigger) TIMQU() bool

func (*ReportingTrigger) TIMTH added in v1.1.0

func (r *ReportingTrigger) TIMTH() bool

func (*ReportingTrigger) UPINT added in v1.1.0

func (r *ReportingTrigger) UPINT() bool

func (*ReportingTrigger) Unmarshal added in v1.1.0

func (r *ReportingTrigger) Unmarshal(b []byte) error

func (*ReportingTrigger) VOLQU added in v1.1.0

func (r *ReportingTrigger) VOLQU() bool

func (*ReportingTrigger) VOLTH added in v1.1.0

func (r *ReportingTrigger) VOLTH() bool

type SessReport

type SessReport struct {
	SEID    uint64
	Reports []Report
}

type USAReport

type USAReport struct {
	URRID        uint32
	URSEQN       uint32
	USARTrigger  UsageReportTrigger
	VolumMeasure VolumeMeasure
	DuratMeasure DurationMeasure
	QueryUrrRef  uint32
	StartTime    time.Time
	EndTime      time.Time
}

func (USAReport) IEsWithinSessDelRsp added in v1.1.0

func (r USAReport) IEsWithinSessDelRsp(
	method MeasureMethod, info MeasureInformation,
) []*ie.IE

func (USAReport) IEsWithinSessModRsp added in v1.1.0

func (r USAReport) IEsWithinSessModRsp(
	method MeasureMethod, info MeasureInformation,
) []*ie.IE

func (USAReport) IEsWithinSessReportReq added in v1.1.0

func (r USAReport) IEsWithinSessReportReq(
	method MeasureMethod, info MeasureInformation,
) []*ie.IE

func (USAReport) Type

func (r USAReport) Type() ReportType

type UsageReportTrigger

type UsageReportTrigger struct {
	Flags uint32
}

func (*UsageReportTrigger) DROTH

func (t *UsageReportTrigger) DROTH() bool

func (*UsageReportTrigger) EMRRE

func (t *UsageReportTrigger) EMRRE() bool

func (*UsageReportTrigger) ENVCL

func (t *UsageReportTrigger) ENVCL() bool

func (*UsageReportTrigger) EVEQU

func (t *UsageReportTrigger) EVEQU() bool

func (*UsageReportTrigger) EVETH

func (t *UsageReportTrigger) EVETH() bool

func (*UsageReportTrigger) IE added in v1.1.0

func (t *UsageReportTrigger) IE() *ie.IE

func (*UsageReportTrigger) IMMER

func (t *UsageReportTrigger) IMMER() bool

func (*UsageReportTrigger) IPMJL

func (t *UsageReportTrigger) IPMJL() bool

func (*UsageReportTrigger) LIUSA

func (t *UsageReportTrigger) LIUSA() bool

func (*UsageReportTrigger) MACAR

func (t *UsageReportTrigger) MACAR() bool

func (*UsageReportTrigger) MONIT

func (t *UsageReportTrigger) MONIT() bool

func (*UsageReportTrigger) PERIO

func (t *UsageReportTrigger) PERIO() bool

func (*UsageReportTrigger) QUHTI

func (t *UsageReportTrigger) QUHTI() bool

func (*UsageReportTrigger) QUVTI

func (t *UsageReportTrigger) QUVTI() bool

func (*UsageReportTrigger) START

func (t *UsageReportTrigger) START() bool

func (*UsageReportTrigger) STOPT

func (t *UsageReportTrigger) STOPT() bool

func (*UsageReportTrigger) SetReportingTrigger added in v1.2.0

func (t *UsageReportTrigger) SetReportingTrigger(r uint32)

func (*UsageReportTrigger) TEBUR

func (t *UsageReportTrigger) TEBUR() bool

func (*UsageReportTrigger) TERMR

func (t *UsageReportTrigger) TERMR() bool

func (*UsageReportTrigger) TIMQU

func (t *UsageReportTrigger) TIMQU() bool

func (*UsageReportTrigger) TIMTH

func (t *UsageReportTrigger) TIMTH() bool

func (*UsageReportTrigger) UPINT added in v1.1.0

func (t *UsageReportTrigger) UPINT() bool

func (*UsageReportTrigger) VOLQU

func (t *UsageReportTrigger) VOLQU() bool

func (*UsageReportTrigger) VOLTH

func (t *UsageReportTrigger) VOLTH() bool

type VolumeMeasure added in v1.0.1

type VolumeMeasure struct {
	Flags          uint8
	TotalVolume    uint64
	UplinkVolume   uint64
	DownlinkVolume uint64
	TotalPktNum    uint64
	UplinkPktNum   uint64
	DownlinkPktNum uint64
}

func (*VolumeMeasure) IE added in v1.1.0

func (m *VolumeMeasure) IE() *ie.IE

func (*VolumeMeasure) SetFlags added in v1.1.0

func (m *VolumeMeasure) SetFlags(mnop bool)

Jump to

Keyboard shortcuts

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