Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { DiscordConfig *DiscordConfig BotToken string `mapstructure:"botToken"` BotName string `mapstructure:"botName"` AppId int64 `mapstructure:"appId"` Features []FeatureConfig LogLevel string `mapstructure:"logLevel"` DBConfig BloopyDBConfig `mapstructure:"db"` FeatureMap map[string]FeatureConfig }
App Config
func (*AppConfig) GetConfiguredFeatureNames ¶
deprecated. Refactor to use FeatureMap Keys
func (*AppConfig) GetFeatureConfig ¶
func (myConfig *AppConfig) GetFeatureConfig(name string) (FeatureConfig, error)
Deprecated until the map version works
func (*AppConfig) GetFeatureConfigViaMap ¶
func (myConfig *AppConfig) GetFeatureConfigViaMap(name string) (FeatureConfig, error)
Gets FeatureConfig for Key if exists
type AppConfigLoader ¶
type AppConfigLoader struct {
// contains filtered or unexported fields
}
func GetAppConfigLoader ¶
func GetAppConfigLoader() *AppConfigLoader
func NewAppConfigLoader ¶
func NewAppConfigLoader(AppConfig *AppConfig) *AppConfigLoader
func (*AppConfigLoader) GetConfig ¶
func (c *AppConfigLoader) GetConfig() *AppConfig
func (*AppConfigLoader) GetRevision ¶
func (c *AppConfigLoader) GetRevision() int
func (*AppConfigLoader) UpdateConfig ¶
func (c *AppConfigLoader) UpdateConfig(AppConfig *AppConfig)
type BloopyDBConfig ¶
type ConfigLoader ¶
type DiscordConfig ¶
Click to show internal directories.
Click to hide internal directories.