influx

package
v1.12.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 10 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.New("invalid operation type. Expected " + string(queryOperation) + " or " + string(bindings.CreateOperation))
	ErrMetadataMissing         = errors.New("metadata required")
	ErrMetadataRawNotFound     = errors.New("required metadata not set: " + 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) GetComponentMetadata added in v1.11.0

func (i *Influx) GetComponentMetadata() (metadataInfo metadata.MetadataMap)

GetComponentMetadata returns the metadata of the component.

func (*Influx) Init

func (i *Influx) Init(_ context.Context, 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