Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigNotification ¶
type ConfigNotification struct { SecretKeyHeader string `koanf:"secret_key_header"` Telegram ConfigNotificationTelegram `koanf:"telegram"` Discord ConfigNotificationDiscord `koanf:"discord"` Email ConfigNotificationEmail `koanf:"email"` SendGrid ConfigNotificationSendGrid `koanf:"sendgrid"` MSTeams ConfigNotificationMSTeams `koanf:"msteams"` }
type ConfigNotificationEmail ¶
type ConfigNotificationMSTeams ¶
type ConfigNotificationMSTeams struct {
Webhooks []string `koanf:"webhooks"`
}
type ConfigServer ¶
type Configuration ¶
type Configuration struct { Server ConfigServer `koanf:"server"` Notifications ConfigNotification `koanf:"notifications"` Timeout time.Duration `koanf:"timeout"` Cloudflare bool `koanf:"cloudflare"` PandocPath string `koanf:"pandoc_path"` PandocDataDir string `koanf:"pandoc_data_dir"` CommandTimeout time.Duration `koanf:"command_timeout"` }
func GetConfig ¶
func GetConfig(f string) (Configuration, error)
Click to show internal directories.
Click to hide internal directories.