package
Version:
v0.0.0-...-44fde62
Opens a new window with list of versions in this module.
Published: Dec 16, 2021
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package config provides connection with environment configuration.
type Config struct {
Telegram Telegram
TaniFund TaniFund
Sleep int `env:"SLEEP,default=60"`
Port string `env:"PORT,default=8080"`
}
Config holds configuration for the project.
NewConfig creates an instance of Config.
It needs the path of the env file to be used.
type TaniFund struct {
URL string `env:"TANIFUND_URL,required"`
}
TaniFund holds configuration related to TaniFund.
type Telegram struct {
RecipientID int `env:"TELEGRAM_RECIPIENT_ID,required"`
URL string `env:"TELEGRAM_URL,required"`
Token string `env:"TELEGRAM_TOKEN,required"`
}
Telegram holds configuration related to Telegram bot.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.