downsampler

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downsampler

type Downsampler struct {
	// contains filtered or unexported fields
}

Downsampler consumes lines from one or more NATS subjects, and applies downsampling to the InfluxDB measurements received from them.

func StartDownsampler

func StartDownsampler(c *config.Config) (_ *Downsampler, err error)

StartDownsampler creates and configures a Downsampler.

func (*Downsampler) Stop

func (ds *Downsampler) Stop()

Stop aborts all goroutines belonging to the Downsampler and closes its connection to NATS. It will be block until all Downsampler goroutines have stopped.

Jump to

Keyboard shortcuts

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