statsclient

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package statsclient is pure Go implementation of VPP stats API client.

Index

Constants

View Source
const (
	MinVersion = 0
	MaxVersion = 1
)

Variables

View Source
var (
	// Debug is global variable that determines debug mode
	Debug = os.Getenv("DEBUG_GOVPP_STATS") != ""

	// Log is global logger
	Log = logger.New()
)

Functions

This section is empty.

Types

type StatsClient

type StatsClient struct {
	// contains filtered or unexported fields
}

StatsClient is the pure Go implementation for VPP stats API.

func NewStatsClient

func NewStatsClient(sockAddr string) *StatsClient

NewStatsClient returns new VPP stats API client.

func (*StatsClient) Connect

func (c *StatsClient) Connect() error

func (*StatsClient) Disconnect

func (c *StatsClient) Disconnect() error

func (*StatsClient) DumpStats

func (c *StatsClient) DumpStats(patterns ...string) (entries []*adapter.StatEntry, err error)

func (*StatsClient) ListStats

func (c *StatsClient) ListStats(patterns ...string) (statNames []string, err error)

Jump to

Keyboard shortcuts

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