package
0.8.0
Repository: https://github.com/alkiranet/govpp.git
Documentation: pkg.go.dev

# Packages

Package mock is an alternative VPP adapter aimed for unit/integration testing where the actual communication with VPP is not demanded.
Package socketclient is a pure Go implementation of adapter.VppAPI, which uses unix domain sockets as the transport for connecting to the VPP binary API.
Package statsclient is pure Go implementation of VPP stats API client.

# Functions

ReduceCombinedCounterStatIndex returns reduced CombinedCounterStat s for index i.
ReduceSimpleCounterStatIndex returns reduced SimpleCounterStat s for index i.

# Constants

No description provided by the author
DefaultBinapiSocket defines a default socket file path for VPP binary API.
DefaultStatsSocket defines a default socket file path for VPP stats API.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrNotImplemented is an error returned when missing implementation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

StatDir defines directory of stats entries created by PrepareDir.
StatEntry represents single stat entry.
StatIdentifier holds a stat entry name and index.
UnknownMsgError is the error type usually returned by GetMsgID method of VppAPI.

# Interfaces

Stat represents some type of stat which is usually defined by StatType.
StatsAPI provides connection to VPP stats API.
VppAPI provides connection to VPP binary API.

# Type aliases

CombinedCounter represents counter with two values, for packet count and bytes count.
CombinedCounterStat represents indexed stat for CombinedCounterVector.
Counter represents simple counter with single value, which is usually packet count.
EmptyStat represents removed counter directory.
ErrorStat represents stat for ErrorIndex.
MsgCallback defines func signature for message callback.
Name represents string value stored under name vector.
NameStat represents stat for NameVector.
ScalarStat represents stat for ScalarIndex.
SimpleCounterStat represents indexed stat for SimpleCounterVector.
StatType represents type of stat directory and simply defines what type of stat data is stored in the stat entry.