forwarder

package
v0.0.0-...-bd03ed3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package forwarder forwards events to the aggregator.

Index

Constants

This section is empty.

Variables

View Source
var Debug *log.Logger

Functions

func ListenAndServe

func ListenAndServe(config *Config) error

ListenAndServe starts Statse listener that forwards incoming Statse messages to the aggregator.

Types

type Config

type Config struct {
	AggregatorHost string
	Filter         []filter.Rule
}

func (*Config) Validate

func (c *Config) Validate() error

type Event

type Event struct {
	Statse statse.Event
	// contains filtered or unexported fields
}

Event is a statse.Event wrapper that adds methods of the filter.Point interface.

func (*Event) Final

func (e *Event) Final() *statse.Event

Final returns a potentially modified version of the wrapped statse.Event.

func (*Event) Metric

func (e *Event) Metric() []byte

Metric implements the Metric method of the filter.Point interface.

func (*Event) Reset

func (e *Event) Reset()

Reset implements the Reset method of the filter.Point interface.

func (*Event) SetMetric

func (e *Event) SetMetric(s []byte) error

SetMetric implements the SetMetric method of the filter.Point interface.

func (*Event) SetTags

func (e *Event) SetTags(newval ...[]byte) error

SetTags implements the SetTags method of the Event interface.

func (*Event) String

func (e *Event) String() string

func (*Event) Tag

func (e *Event) Tag(key []byte) []byte

Tag implements the Tag method of the filter.Point interface.

Jump to

Keyboard shortcuts

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