Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConfigFileWasCreated = apperrors.Business("a new config file was created (%s)", "CONF:001") ErrFailEnsureConfig = apperrors.System(nil, "fail to ensure config", "CONF:002") ErrMissingTelegramToken = apperrors.System(nil, "missing telegram token", "CONF:003") ErrFailToLoadConfig = apperrors.System(nil, "fail to load config", "CONF:004") )
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Debug bool `fig:"-" yaml:"-"` Timezone string `fig:"timezone" yaml:"timezone"` Logger Logger `fig:"logger" yaml:"logger"` Telegram telegram.Config `fig:"telegram" yaml:"telegram"` Storage database.Options `fig:"storage" yaml:"storage"` Cron cron.TasksConfig[model.Entry] `fig:"cron" yaml:"cron"` }
Click to show internal directories.
Click to hide internal directories.