Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAllFlags ¶
AddAllFlags will add all the flags provided in this package to the provided command and will bind those flags with viper.
func AddBotFlags ¶
func AddConfigurationFlag ¶
AddConfigurationFlag adds support to provide a configuration file on the command line.
func AddDatabaseFlags ¶
func AddLoggerFlags ¶
AddLoggerFlags adds support to configure the level of the logger.
Types ¶
type Conf ¶
type Conf struct { Port int `mapstructure:"port"` Log LogConf `mapstructure:"log"` Bot BotConf `mapstructure:"bot"` Database DatabaseConf `mapstructure:"database"` }
type DatabaseConf ¶
type DatabaseConf struct {
Path string `mapstructure:"path"`
}
Click to show internal directories.
Click to hide internal directories.