stage

package
v0.0.0-...-e917273 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoStageExecutor is returned when a stage has no configured
	// executor.
	ErrNoStageExecutor = errors.New("no executor for stage")
)

Functions

func Default

func Default(reg *prometheus.Registry) (executor.Stage, error)

Default returns a default Stage executor.

func New

func New(p Params) (executor.Stage, error)

New returns a new Stage executor.

Types

type Params

type Params struct {
	Registry *prometheus.Registry

	DHCP4     executor.DHCP4
	DNS       executor.DNS
	ETCD      executor.ETCD
	HTTP      executor.HTTP
	LDAP      executor.LDAP
	Memcache  executor.Memcache
	Redis     executor.Redis
	SQL       executor.SQL
	SNMP      executor.SNMP
	SSH       executor.SSH
	UDP       executor.UDP
	Websocket executor.Websocket
}

Params is used for configuring a Stage executor.

Jump to

Keyboard shortcuts

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