vppapiclient

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: 9 Imported by: 0

Documentation

Overview

Package vppapiclient is the default VPP adapter being used for the connection to VPP binary & stats API via shared memory. It is essentially Go wrapper for the VPP vppapiclient library written in C.

Index

Constants

This section is empty.

Variables

View Source
var (
	// MaxWaitReady defines maximum duration before waiting for shared memory
	// segment times out
	MaxWaitReady = time.Second * 15
)

Functions

func NewStatClient

func NewStatClient(socketName string) adapter.StatsAPI

NewStatClient returns new VPP stats API client.

func NewVppClient

func NewVppClient(shmPrefix string) adapter.VppAPI

NewVppClient returns a new VPP binary API client.

func NewVppClientWithInputQueueSize

func NewVppClientWithInputQueueSize(shmPrefix string, inputQueueSize uint16) adapter.VppAPI

NewVppClientWithInputQueueSize returns a new VPP binary API client with a custom input queue size.

Types

This section is empty.

Jump to

Keyboard shortcuts

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