receiver

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register added in v0.11.0

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

func WithProtocol added in v0.11.0

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 added in v0.8.1

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

func New added in v0.8.1

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