vppcalls

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHandlerVersion

func AddHandlerVersion(version vpp.Version, msgs []govppapi.Message, h NewHandlerFunc)

AddHandlerVersion is used to register implementations of VPP handler API interface for a specific VPP version.

Types

type NewHandlerFunc

type NewHandlerFunc func(ch govppapi.Channel, log logging.Logger) SyslogVppAPI

type SenderConfig

type SenderConfig struct {
	Source    net.IP
	Collector net.IP
	Port      int
}

type SyslogVppAPI

type SyslogVppAPI interface {
	SetSender(sender SenderConfig) error
	GetSender() (*SenderConfig, error)
	DisableSender() error
}

SyslogVppAPI defines VPP handler API in vpp-version agnostic way. It cannot not use any generated binary API code directly.

func CompatibleVppHandler

func CompatibleVppHandler(c vpp.Client, log logging.Logger) SyslogVppAPI

CompatibleVppHandler checks all the registered implementations to find the compatible handler implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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