fix typo.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
b766062e52
commit
2decbaf729
|
@ -16,7 +16,7 @@ type ConfYaml struct {
|
|||
Stat SectionStat `yaml:"stat"`
|
||||
}
|
||||
|
||||
// SectionCore is sub seciont of config.
|
||||
// SectionCore is sub section of config.
|
||||
type SectionCore struct {
|
||||
Port string `yaml:"port"`
|
||||
MaxNotification int64 `yaml:"max_notification"`
|
||||
|
@ -30,7 +30,7 @@ type SectionCore struct {
|
|||
PID SectionPID `yaml:"pid"`
|
||||
}
|
||||
|
||||
// SectionAPI is sub seciont of config.
|
||||
// SectionAPI is sub section of config.
|
||||
type SectionAPI struct {
|
||||
PushURI string `yaml:"push_uri"`
|
||||
StatGoURI string `yaml:"stat_go_uri"`
|
||||
|
@ -39,13 +39,13 @@ type SectionAPI struct {
|
|||
SysStatURI string `yaml:"sys_stat_uri"`
|
||||
}
|
||||
|
||||
// SectionAndroid is sub seciont of config.
|
||||
// SectionAndroid is sub section of config.
|
||||
type SectionAndroid struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
APIKey string `yaml:"apikey"`
|
||||
}
|
||||
|
||||
// SectionIos is sub seciont of config.
|
||||
// SectionIos is sub section of config.
|
||||
type SectionIos struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
KeyPath string `yaml:"key_path"`
|
||||
|
@ -53,7 +53,7 @@ type SectionIos struct {
|
|||
Production bool `yaml:"production"`
|
||||
}
|
||||
|
||||
// SectionLog is sub seciont of config.
|
||||
// SectionLog is sub section of config.
|
||||
type SectionLog struct {
|
||||
Format string `yaml:"format"`
|
||||
AccessLog string `yaml:"access_log"`
|
||||
|
@ -63,7 +63,7 @@ type SectionLog struct {
|
|||
HideToken bool `yaml:"hide_token"`
|
||||
}
|
||||
|
||||
// SectionStat is sub seciont of config.
|
||||
// SectionStat is sub section of config.
|
||||
type SectionStat struct {
|
||||
Engine string `yaml:"engine"`
|
||||
Redis SectionRedis `yaml:"redis"`
|
||||
|
@ -72,30 +72,30 @@ type SectionStat struct {
|
|||
LevelDB SectionLevelDB `yaml:"leveldb"`
|
||||
}
|
||||
|
||||
// SectionRedis is sub seciont of config.
|
||||
// SectionRedis is sub section of config.
|
||||
type SectionRedis struct {
|
||||
Addr string `yaml:"addr"`
|
||||
Password string `yaml:"password"`
|
||||
DB int `yaml:"db"`
|
||||
}
|
||||
|
||||
// SectionBoltDB is sub seciont of config.
|
||||
// SectionBoltDB is sub section of config.
|
||||
type SectionBoltDB struct {
|
||||
Path string `yaml:"path"`
|
||||
Bucket string `yaml:"bucket"`
|
||||
}
|
||||
|
||||
// SectionBuntDB is sub seciont of config.
|
||||
// SectionBuntDB is sub section of config.
|
||||
type SectionBuntDB struct {
|
||||
Path string `yaml:"path"`
|
||||
}
|
||||
|
||||
// SectionLevelDB is sub seciont of config.
|
||||
// SectionLevelDB is sub section of config.
|
||||
type SectionLevelDB struct {
|
||||
Path string `yaml:"path"`
|
||||
}
|
||||
|
||||
// SectionPID is sub seciont of config.
|
||||
// SectionPID is sub section of config.
|
||||
type SectionPID struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
Path string `yaml:"path"`
|
||||
|
|
Loading…
Reference in New Issue