Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailToLoadConfig = errors.System(nil, "fail to load config", "CONF:001") ErrFailEnsureConfig = errors.System(nil, "fail to ensure config", "CONF:002") ConfigFileWasCreated = errors.Business("a new config file was created (%s)", "CONF:003") ErrMissingTelegramToken = errors.System(nil, "missing telegram token", "CONF:004") ErrMissingYoutubeToken = errors.System(nil, "missing youtube token", "CONF:005") )
Functions ¶
func VersionVerbose ¶
func VersionVerbose() string
Types ¶
type AppConfig ¶
type AppConfig struct { Debug bool `fig:"-" yaml:"-"` Timezone string `fig:"timezone" yaml:"timezone"` Description string `fig:"description" yaml:"description"` Logger Logger `fig:"logger" yaml:"logger"` Telegram Telegram `fig:"telegram" yaml:"telegram"` Youtube YouTube `fig:"youtube" yaml:"youtube"` Pix Pix `fig:"pix" yaml:"pix"` Cron Cron `fig:"cron" yaml:"cron"` }
type Channel ¶
type Logger ¶
Click to show internal directories.
Click to hide internal directories.