writer

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: 17 Imported by: 0

Documentation

Overview

Package writer configures and instantiates the subscribers to the NATS bus, in turn POST'ing data to InfluxDB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

Writer consumes lines from one or more NATS subjects, optionally applies filtering, batches them up and then writes them to a InfluxDB endpoint.

func StartWriter

func StartWriter(c *config.Config) (_ *Writer, err error)

StartWriter creates and configures a Writer.

func (*Writer) Stop

func (w *Writer) Stop()

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

Jump to

Keyboard shortcuts

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