receiver

package
v0.14.1-0...-915d78e Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(protocol string,
	newOptions func() interface{},
	newReceiver func(name string, options interface{}, store func(*points.Points)) (Receiver, error))

func WithProtocol

func WithProtocol(options interface{}, protocol string) (map[string]interface{}, error)

WithProtocol marshal options to toml, unmarshal to map[string]interface{} and add "protocol" key to them

Types

type Receiver

type Receiver interface {
	Stop()
	Stat(helper.StatCallback)
	InitPrometheus(prometheus.Registerer)
}

func New

func New(name string, opts map[string]interface{}, store func(*points.Points)) (Receiver, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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