Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DbConfig DbConfig `json:"db" yaml:"db" mapstructure:"db"` CronConfig CronConfig `json:"cron" yaml:"cron" mapstructure:"cron"` }
type CronConfig ¶
type CronConfig struct { BackupSchedule string `json:"backupSchedule" yaml:"backupSchedule" mapstructure:"backupSchedule"` RotateSchedule string `json:"rotateSchedule" yaml:"rotateSchedule" mapstructure:"rotateSchedule"` BackupDir string `json:"backupDir" yaml:"backupDir" mapstructure:"backupDir"` }
func (CronConfig) Validate ¶
func (c CronConfig) Validate() error
type DbConfig ¶
type DbConfig struct { Name string `json:"name" yaml:"name" mapstructure:"name"` EncryptKey string `json:"encryptKey" yaml:"encryptKey" mapstructure:"encryptKey"` RotationDuration int `json:"rotationDuration" yaml:"rotationDuration" mapstructure:"rotationDuration"` DbDir string `json:"dbDir" yaml:"dbDir" mapstructure:"dbDir"` DeletePrevious bool `json:"deletePrevious" yaml:"deletePrevious" mapstructure:"deletePrevious"` }
Click to show internal directories.
Click to hide internal directories.