vppapiclient

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 8

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.

DEPRECATED: The vppapiclient implementation has been deprecated. Use socketclient and statsclient.

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 * 10
)

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