influx

package
v1.10.7 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidRequestData      = errors.New("Influx Error: Cannot convert request data")
	ErrCannotWriteRecord       = errors.New("Influx Error: Cannot write point")
	ErrInvalidRequestOperation = errors.Errorf("invalid operation type. Expected %s or %s", queryOperation, bindings.CreateOperation)
	ErrMetadataMissing         = errors.New("metadata required")
	ErrMetadataRawNotFound     = errors.Errorf("required metadata not set: %s", rawQueryKey)
)

Functions

func NewInflux

func NewInflux(logger logger.Logger) bindings.OutputBinding

NewInflux returns a new kafka binding instance.

Types

type Influx

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

Influx allows writing to InfluxDB.

func (*Influx) Close added in v1.4.4

func (i *Influx) Close() error

func (*Influx) Init

func (i *Influx) Init(metadata bindings.Metadata) error

Init does metadata parsing and connection establishment.

func (*Influx) Invoke

Invoke called on supported operations.

func (*Influx) Operations

func (i *Influx) Operations() []bindings.OperationKind

Operations returns supported operations.

Jump to

Keyboard shortcuts

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