helpers

package
v0.0.0-...-2c269c1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	InfluxDB       InfluxDB     `yaml:"influxDB"`
	TorontoHydro   TorontoHydro `yaml:"torontoHydro"`
	SleepDuration  int          `yaml:"sleepDuration"`
	LookDaysInPast int          `yaml:"lookDaysInPast"`
}

func ReadConfig

func ReadConfig(configFile string) Config

type InfluxDB

type InfluxDB struct {
	URL          string `yaml:"url"`
	Token        string `yaml:"token"`
	Organization string `yaml:"organization"`
	Bucket       string `yaml:"bucket"`
}

type TorontoHydro

type TorontoHydro struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Mock     bool   `yaml:"mock"`
}

Jump to

Keyboard shortcuts

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