Discover Packages
github.com/sstreichan/mgob
config
package
Version:
v0.10.0
Opens a new window with list of versions in this module.
Published: Jul 28, 2018
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AppConfig struct {
LogLevel string `json:"log_level"`
Port int `json:"port"`
ConfigPath string `json:"config_path"`
StoragePath string `json:"storage_path"`
TmpPath string `json:"tmp_path"`
DataPath string `json:"data_path"`
}
type GCloud struct {
Bucket string `yaml:"bucket"`
KeyFilePath string `yaml:"keyFilePath"`
}
type Plan struct {
Name string `yaml:"name"`
Target Target `yaml:"target"`
Scheduler Scheduler `yaml:"scheduler"`
S3 *S3 `yaml:"s3"`
GCloud *GCloud `yaml:"gcloud"`
SFTP *SFTP `yaml:"sftp"`
SMTP *SMTP `yaml:"smtp"`
Slack *Slack `yaml:"slack"`
}
type S3 struct {
Bucket string `yaml:"bucket"`
AccessKey string `yaml:"accessKey"`
API string `yaml:"api"`
SecretKey string `yaml:"secretKey"`
URL string `yaml:"url"`
}
type SFTP struct {
Dir string `yaml:"dir"`
Host string `yaml:"host"`
Password string `yaml:"password"`
Port int `yaml:"port"`
Username string `yaml:"username"`
}
type SMTP struct {
Server string `yaml:"server"`
Port string `yaml:"port"`
Password string `yaml:"password"`
Username string `yaml:"username"`
From string `yaml:"from"`
To []string `yaml:"to"`
}
type Scheduler struct {
Cron string `yaml:"cron"`
Retention int `yaml:"retention"`
Timeout int `yaml:"timeout"`
}
type Slack struct {
URL string `yaml:"url"`
Channel string `yaml:"channel"`
Username string `yaml:"username"`
WarnOnly bool `yaml:"warnOnly"`
}
type Target struct {
Database string `yaml:"database"`
Host string `yaml:"host"`
Password string `yaml:"password"`
Port int `yaml:"port"`
Username string `yaml:"username"`
Params string `yaml:"params"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.