dnsplugin

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPlugin = *NewPlugin()

DefaultPlugin is a default instance of DNSPlugin.

Functions

This section is empty.

Types

type DNSPlugin

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

DNSPlugin configures VPP ability to act as DNS cache server.

func NewPlugin

func NewPlugin(opts ...Option) *DNSPlugin

NewPlugin creates a new Plugin with the provides Options

func (*DNSPlugin) AfterInit

func (p *DNSPlugin) AfterInit() error

AfterInit registers plugin with StatusCheck.

func (*DNSPlugin) Init

func (p *DNSPlugin) Init() error

Init initializes and registers descriptor for DNS.

type Deps

type Deps struct {
	infra.PluginDeps
	Scheduler   scheduler.KVScheduler
	VPP         govppmux.API
	StatusCheck statuscheck.PluginStatusWriter // optional
}

type Option

type Option func(*DNSPlugin)

Option is a function that can be used in NewPlugin to customize Plugin.

func UseDeps

func UseDeps(f func(*Deps)) Option

UseDeps returns Option that can inject custom dependencies.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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