influx3

package
v0.0.0-...-e105d0e Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfluxDBIngester

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

func NewInfluxIngester

func NewInfluxIngester(opts ...Option) *InfluxDBIngester

NewOptions creates a new Options instance with provided functional options

func (*InfluxDBIngester) Close

func (in *InfluxDBIngester) Close() error

func (*InfluxDBIngester) Get

func (in *InfluxDBIngester) Get() ([]map[string]any, error)

func (*InfluxDBIngester) Ingest

func (in *InfluxDBIngester) Ingest(data map[string]any)

type Option

type Option func(*Options)

func WithClient

func WithClient(client *influxdb3.Client) Option

WithClient sets the InfluxDB client in Options

func WithDatabase

func WithDatabase(database string) Option

WithDatabase sets the database in Options

func WithLogger

func WithLogger(logger *slog.Logger) Option

WithLogger sets the logger in Options

func WithMeasurement

func WithMeasurement(measurement string) Option

WithMeasurement sets the measurement in Options

func WithOrganization

func WithOrganization(organization string) Option

WithOrganization sets the organization in Options

type Options

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

Jump to

Keyboard shortcuts

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