influx

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataProducer

type DataProducer interface {
	Fetch(*producerArgs) error
}

DataProducer populates a data channel with the results from an influx query

func NewDataProducer

func NewDataProducer(id string, influxClient influx.Client) DataProducer

NewDataProducer craetes a new DataProducer

type Extractor

type Extractor struct {
	Config *config.ExtractionConfig
	SM     schemamanagement.SchemaManager

	DataProducer DataProducer
	// contains filtered or unexported fields
}

Extractor is an implementation of the extraction.Extractor interface for pulling data out of InfluxDB

func (*Extractor) ID

func (e *Extractor) ID() string

ID of the extractor, useful for logging and error reporting

func (*Extractor) Prepare

func (e *Extractor) Prepare() (*idrf.Bundle, error)

Prepare discovers the data set schema for the measure in the config

func (*Extractor) Start

func (e *Extractor) Start(errChan chan error) error

Start pulls the data from an InfluxDB measure and feeds it to a data channel Peridicly (between chunks) checks for external errors and quits if it detects them

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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