package
0.0.0-20200807125606-b3493662e4bf
Repository: https://github.com/thethingsnetwork/go-utils.git
Documentation: pkg.go.dev

# Functions

NewBatchingWriter creates new BatchingWriter.
NewSinglePointWriter creates new SinglePointWriter.
WithInstanceLimit sets a limit on amount of additional instances spawned by BatchingWriter.
WithInstanceLimit sets a limit on amount of additional instances spawned by BatchingWriter.

# Constants

DefaultScalingInterval represents default scaling interval(time to wait before a new writer is started/killed) used by BatchingWriter.

# Variables

DefaultInstanceLimit represents default limit on instances spawned by BatchingWriter.

# Structs

BatchingWriter is a PointWriter, which writes points in batches.
SinglePointWriter is a PointWriter, which writes points one-by-one.

# Interfaces

BatchPointsWriter writes influxdb.BatchPoints to Influx database.
PointWriter writes *influxdb.Point to Influx database.

# Type aliases

BatchingWriterOption is passed to the constructor of BatchingWriter to configure it accordingly.