Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultWorkDir = "/usr/local/pprofparser" DefaultCfgName = "conf.yml" DefaultCfgPath = DefaultWorkDir + "/" + DefaultCfgName )
View Source
const ( EnvLocal = "local" EnvDev = "dev" EnvTest = "test" EnvPre = "pre" EnvProduction = "prod" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Serv Server `yaml:"server"`
Log Log `yaml:"log"`
Gin Gin `yaml:"gin"`
Oss Oss `yaml:"oss"`
Storage Storage `yaml:"storage"`
}
var (
Cfg *Config
)
type Gin ¶
type Gin struct {
RunMode string `yaml:"run_mode"`
Log string `yaml:"log"`
ErrorLog string `yaml:"error_log"`
}
Gin gin configuration
type Oss ¶
type Oss struct {
Host string `yaml:"host"`
AccessKey string `yaml:"access_key"`
SecretKey string `yaml:"secret_key"`
ProfileBucket string `yaml:"profile_bucket"`
ProfileDir string `yaml:"profile_dir"`
}
Oss aliyun oss configuration
Click to show internal directories.
Click to hide internal directories.