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 27, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Period:      1 * time.Hour,
	MaxApiCalls: 60,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Period      time.Duration `config:"period"`
	Regions     []Region      `config:"regions"`
	AppId       string        `config:"appid"`
	MaxApiCalls int           `config:"maxApiCalls"`
}

type Region

type Region struct {
	Enabled     bool   `config:"enabled"`
	Name        string `config:"name"`
	Description string `config:"description"`
	LonLeft     int    `config:"lon-left"`
	LatBottom   int    `config:"lat-bottom"`
	LonRight    int    `config:"lon-right"`
	LatTop      int    `config:"lat-top"`
	Zoom        int    `config:"zoom"`
}

Jump to

Keyboard shortcuts

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