Versions in this module Expand all Collapse all v0 v0.1.0 Jul 3, 2019 Changes in this version + const DefaultBinapiSocket + const DefaultStatsSocket + var ErrNotImplemented = errors.New("not implemented for this OS") + var ErrStatDirBusy = errors.New("stat dir busy") + var ErrStatDumpBusy = errors.New("stat dump busy") + type CombinedCounter struct + Bytes Counter + Packets Counter + type CombinedCounterStat [][]CombinedCounter + type Counter uint64 + type ErrorStat Counter + type MsgCallback func(msgID uint16, data []byte) + type Name string + type NameStat []Name + type ScalarStat float64 + type SimpleCounterStat [][]Counter + type Stat interface + type StatEntry struct + Data Stat + Name string + Type StatType + type StatType int + const CombinedCounterVector + const ErrorIndex + const NameVector + const ScalarIndex + const SimpleCounterVector + func (d StatType) String() string + type StatsAPI interface + Connect func() error + Disconnect func() error + DumpStats func(patterns ...string) ([]*StatEntry, error) + ListStats func(patterns ...string) (statNames []string, err error) + type VppAPI interface + Connect func() error + Disconnect func() error + GetMsgID func(msgName string, msgCrc string) (msgID uint16, err error) + SendMsg func(context uint32, data []byte) error + SetMsgCallback func(cb MsgCallback) + WaitReady func() error