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 TargetOperation ¶
type TargetOperation struct { Add []*collector.TargetConfig Del []string }
func Diff ¶
func Diff(m1, m2 map[string]*collector.TargetConfig) *TargetOperation
Click to show internal directories.
Click to hide internal directories.