loaders

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Loaders = map[string]Initializer{}
View Source
var LoadersTypes = []string{
	"file",
	"consul",
	"docker",
}

Functions

func DecodeConfig

func DecodeConfig(src, dst interface{}) error

func Register

func Register(name string, initFn Initializer)

Types

type Initializer

type Initializer func() TargetLoader

type TargetLoader

type TargetLoader interface {
	Init(context.Context, map[string]interface{}, *log.Logger) error
	Start(context.Context) chan *TargetOperation
}

type TargetOperation

type TargetOperation struct {
	Add []*collector.TargetConfig
	Del []string
}

func Diff

func Diff(m1, m2 map[string]*collector.TargetConfig) *TargetOperation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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