configurator

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPlugin = *NewPlugin()

DefaultPlugin is default instance of Plugin

Functions

This section is empty.

Types

type Deps

type Deps struct {
	infra.PluginDeps
	GRPCServer   grpc.Server
	Dispatch     orchestrator.Dispatcher
	GoVppmux     govppmux.StatsAPI
	AddrAlloc    netalloc.AddressAllocator
	VPPACLPlugin aclplugin.API
	VPPIfPlugin  ifplugin.API
	VPPL2Plugin  *l2plugin.L2Plugin
	VPPL3Plugin  l3plugin.API
}

Deps - dependencies of Plugin

type Option

type Option func(*Plugin)

Option is a function that acts on a Plugin to inject Dependencies or configuration

func UseDeps

func UseDeps(cb func(*Deps)) Option

UseDeps returns Option that can inject custom dependencies.

type Plugin

type Plugin struct {
	Deps
	// contains filtered or unexported fields
}

Plugin registers VPP GRPC services in *grpc.Server.

func NewPlugin

func NewPlugin(opts ...Option) *Plugin

NewPlugin creates a new Plugin with the provides Options

func (*Plugin) Close

func (p *Plugin) Close() error

Close does nothing.

func (*Plugin) Init

func (p *Plugin) Init() error

Init sets plugin child loggers

type Stats

type Stats struct {
	AllOperations metrics.CallStats
	Operations    metrics.Calls
}

func GetStats

func GetStats() *Stats

Jump to

Keyboard shortcuts

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