builder

package
v0.0.0-...-0b4a972 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2019 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	// Name returns the name of the builder
	Name() string
}

Builders take pods and generate module runners for them

type BuilderConstructor

type BuilderConstructor func(config *common.Config, client ClientInfo, metagen metagen.MetaGen) (Builder, error)

type ClientInfo

type ClientInfo common.MapStr

type PollerBuilder

type PollerBuilder interface {
	Builder
	// BuildModuleRunner generates module runners for the given configs, then returns the
	// list of indexes to create, with the metadata to put on them
	BuildModuleConfigs(obj interface{}) []*dcommon.ConfigHolder
}

type PushBuilder

type PushBuilder interface {
	Builder
	// AddModuleConfig adds a configuration to the current configuration of the push metricset
	AddModuleConfig(obj interface{}) *dcommon.ConfigHolder

	// RemoveModuleConfig removes a configuration to the current configuration of the push metricset
	RemoveModuleConfig(obj interface{}) *dcommon.ConfigHolder

	// ModuleConfig returns current module config
	ModuleConfig() *dcommon.ConfigHolder
}

Jump to

Keyboard shortcuts

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