config

package
v0.0.0-...-e5ae690 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig()

Types

type AppConfigYaml

type AppConfigYaml struct {
	Telegram      TelegramConfig `yaml:"telegram"`
	Warnings      WarningConfig  `yaml:"warnings"`
	FetchInterval int            `yaml:"fetch_interval"`
}
var AppConfig AppConfigYaml

func (AppConfigYaml) Validate

func (config AppConfigYaml) Validate()

type TelegramConfig

type TelegramConfig struct {
	ApiKey         string `yaml:"api_key"`
	ChannelName    string `yaml:"channel_name"`
	MaintainerName string `yaml:"maintainer_name"`
}

type WarningConfig

type WarningConfig struct {
	Intervals    []int  `yaml:"intervals"`
	HomeTitle    string `yaml:"home_title"`
	GuestTitle   string `yaml:"guest_title"`
	HomeMessage  string `yaml:"home_message"`
	GuestMessage string `yaml:"guest_message"`
}

Jump to

Keyboard shortcuts

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