configs

package
v0.0.0-...-a1b785a Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 5 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 {
	BotToken      string          `json:"telegram_bot_token"`
	ChatID        string          `json:"telegram_chat_id"`
	CollectorTime int             `json:"collector_time"`
	SendTime      int             `json:"send_time"`
	Topics        []common.Topic  `json:"topics"`
	Sources       []common.Source `json:"sources"`
}

Config :: Main configuration struct BotToken: Telegram bot token ChatID: Telegram chat id (can be a group) CollectorTime: Time interval for the collector (Minutes) SendTime: Time interval for telegram sender (Minutes) Topics: List of topics Sources: LIst of sources

func LoadConfigurations

func LoadConfigurations(confFilePath string) (Config, error)

LoadConfigurations :: Load configuration file

Jump to

Keyboard shortcuts

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