collector

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const All = "all"

All will be used by everybody

Variables

View Source
var AllFilterable = Filterable{Filter: All}

AllFilterable will be used by everybody

View Source
var EmptyFilterable = Filterable{Filter: ""}

EmptyFilterable is the default value

Functions

This section is empty.

Types

type Filterable added in v0.4.0

type Filterable struct {
	Filter string
}

Filterable allows to sort the data

func (Filterable) TestTargetFilter added in v0.4.0

func (f Filterable) TestTargetFilter(toTest string) bool

TestTargetFilter tests if the given filter matches with the containing filter

func (Filterable) TestTargetFilterObj added in v0.4.0

func (f Filterable) TestTargetFilterObj(filter Filterable) bool

TestTargetFilterObj like TestTargetFilter just with two objects

type Printable

type Printable interface {
	PrintForInfluxDB(version string) string
	PrintForElasticsearch(version, index string) string
	TestTargetFilter(string) bool
}

Printable this interface should be used to push data into the queue.

type ResultQueues added in v0.4.0

type ResultQueues map[data.Target]chan Printable

type SimplePrintable

type SimplePrintable struct {
	Filterable
	Text     string
	Datatype data.Datatype
}

SimplePrintable can be used to send strings as printable

func (SimplePrintable) PrintForElasticsearch

func (p SimplePrintable) PrintForElasticsearch(version, index string) string

PrintForElasticsearch generates an String for Elasticsearch

func (SimplePrintable) PrintForInfluxDB

func (p SimplePrintable) PrintForInfluxDB(version string) string

PrintForInfluxDB generates an String for InfluxDB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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