config

package
v7.6.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{

	Username: "",
	Password: "",
}

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientId        string          `config:"client_id"`
	ClientSecret    string          `config:"client_secret"`
	Username        string          `config:"username"`
	Password        string          `config:"password"`
	WeatherStations WeatherStations `config:"weather_stations"`
	PublicWeather   PublicWeather   `config:"public_weather"`
}

type PublicWeather

type PublicWeather struct {
	Enabled bool          `config:"enabled"`
	Regions []Region      `config:"regions"`
	Period  time.Duration `config:"period"`
}

type Region

type Region struct {
	Enabled     bool    `config:"enabled"`
	Name        string  `config:"name"`
	Description string  `config:"description"`
	LatNe       float64 `config:"lat_ne"`
	LonNe       float64 `config:"lon_ne"`
	LatSw       float64 `config:"lat_sw"`
	LonSw       float64 `config:"lon_sw"`
}

type WeatherStations

type WeatherStations struct {
	Enabled bool          `config:"enabled"`
	Ids     []string      `config:"ids"`
	Period  time.Duration `config:"period"`
}

Jump to

Keyboard shortcuts

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