Discover Packages
github.com/open-fightcoder/oj-dispatcher
common
g
package
Version:
v0.0.0-...-1fd3cfe
Opens a new window with list of versions in this module.
Published: May 16, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func LoadConfig(cfgFile string )
加载配置文件
type JwtConfig struct {
EncodeMethod string `toml:"encodeMethod"`
MaxEffectiveTime int64 `toml:"maxEffectiveTime"`
}
type LogConfig struct {
Enable bool `toml:"enable"`
Path string `toml:"path"`
RotatTime int `toml:"rotatTime"`
MaxAge int `toml:"maxAge"`
}
type MysqlConfig struct {
MaxIdle int `toml:"maxIdle"`
MaxOpen int `toml:"maxOpen"`
Debug bool `toml:"debug"`
WebAddr string `toml:"webAddr"`
}
type NsqConfig struct {
Lookupds []string `toml:"lookupds"`
JudgeTopic string `toml:"judgeTopic"`
JudgeChannel string `toml:"judgeChannel"`
MaxInFlight int `toml:"maxInFlight"`
}
type RunConfig struct {
WaitTimeout int `toml:"waitTimeout"`
HTTPPort int `toml:"httpPort"`
Mode string `toml:"mode"`
MaxAllowed int `toml:"maxAllowed"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.