Documentation ¶
Overview ¶
Config package declares primitives to handle dynamic configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Environment string `json:"ENVIRONMENT"` AWSRegion string `json:"AWSREGION"` // Timeout int64 `json:"TIMEOUT"` TelegramToken string `json:"TELEGRAMTOKEN"` }
Config holds a complete set of dynamic configuration.
func GetConfigFromENV ¶
GetConfigFromENV reads the configuration from environment variables and returns a Config struct.
func GetConfigFromFile ¶
GetConfigFromFile reads the configuration from an INI-style file and returns a Config struct. See tmb.conf.template for an example input file.
Click to show internal directories.
Click to hide internal directories.