Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigFilePath ¶
func LoadConfig ¶
func LoadConfig()
Types ¶
type BackupConfig ¶
type Config ¶
type Config struct { Postgres PostgresConfig `yaml:"postgres" mapstructure:"postgres"` S3 S3Config `yaml:"s3" mapstructure:"s3"` Backup BackupConfig `yaml:"backup" mapstructure:"backup"` Notifiers NotifiersConfig `yaml:"notifiers" mapstructure:"notifiers"` }
var Current *Config
type DiscordNotifierConfig ¶
type NotifiersConfig ¶
type NotifiersConfig struct { Enabled bool `yaml:"enabled" mapstructure:"enabled"` Discord DiscordNotifierConfig `yaml:"discord" mapstructure:"discord"` }
type PostgresConfig ¶
type S3Config ¶
type S3Config struct { Endpoint string `yaml:"endpoint" mapstructure:"endpoint"` Region string `yaml:"region" mapstructure:"region"` AccessKey string `yaml:"access-key" mapstructure:"access-key"` SecretKey string `yaml:"secret-key" mapstructure:"secret-key"` Bucket string `yaml:"bucket" mapstructure:"bucket"` Prefix string `yaml:"prefix" mapstructure:"prefix"` }
Click to show internal directories.
Click to hide internal directories.