Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StrategyFile string StrategyFolder string )
View Source
var (
ConfigFile string
)
Functions ¶
func InitConfig ¶
func InitConfig()
func InitStrategyFile ¶
func InitStrategyFile()
Types ¶
type Config ¶
type Config struct { Log logConfig `json:"log"` Http httpConfig `json:"http"` Strategy loadConfig `json:"strategy"` Worker workerConfig `json:"worker"` Endpoint string `json:"endpoint"` MaxCPURate float64 `json:"max_cpu_rate"` MaxCPUNum int `json:"max_cpu_num"` MaxMemRate float64 `json:"max_mem_rate"` MaxMemMB int `json:"max_mem_MB"` }
Click to show internal directories.
Click to hide internal directories.