Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Exist Is config file exist Exist bool // Models configs Models []ModelConfig // HomeDir of user HomeDir = os.Getenv("HOME") )
Functions ¶
Types ¶
type ModelConfig ¶
type ModelConfig struct {
Name string
TempPath string
DumpPath string
CompressWith SubConfig
EncryptWith SubConfig
StoreWith SubConfig
Archive *viper.Viper
SplitIntoChunksOf int
Databases []SubConfig
Storages []SubConfig
Notifiers []SubConfig
Viper *viper.Viper
}
ModelConfig for special case
func GetModelByName ¶
func GetModelByName(name string) (model *ModelConfig)
GetModelByName get model by name
func (*ModelConfig) GetDatabaseByName ¶
func (model *ModelConfig) GetDatabaseByName(name string) (subConfig *SubConfig)
GetDatabaseByName get database config by name
type ModelRunInfo ¶
Click to show internal directories.
Click to hide internal directories.