influx

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Influx

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

func MakeInfluxClient

func MakeInfluxClient(ctx context.Context, config *conf.Conf) (Influx, error)

func (Influx) Close

func (influx Influx) Close()

func (Influx) GetLastSubmission

func (ifx Influx) GetLastSubmission(ctx context.Context, config *conf.Conf, fuelType string) (time.Time, error)

func (Influx) SubmitConsumption

func (ifx Influx) SubmitConsumption(ctx context.Context, config *conf.Conf, energyType string, value float64, t time.Time) error

Jump to

Keyboard shortcuts

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