collector

package
v0.0.0-...-609edd2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 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

type Filterable struct {
	Filter string
}

Filterable allows to sort the data

func (Filterable) TestTargetFilter

func (f Filterable) TestTargetFilter(toTest string) bool

TestTargetFilter tests if the given filter matches with the containing filter

func (Filterable) TestTargetFilterObj

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

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