g

package
v0.0.0-...-542bf9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StrategyFile   string
	StrategyFolder string
)
View Source
var (
	ConfigFile string
)

Functions

func CloseLog

func CloseLog()

func InitAll

func InitAll()

func InitConfig

func InitConfig()

func InitLog

func InitLog() error

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"`
}

func Conf

func Conf() *Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL