Documentation ¶
Index ¶
Constants ¶
View Source
const ( VERSION = "0.0.11" GAUGE = "GAUGE" COUNTER = "COUNTER" DERIVE = "DERIVE" DEFAULT_STEP = 60 MIN_STEP = 30 )
Variables ¶
View Source
var ( RecvDataTrace = nproc.NewDataTrace("RecvDataTrace", 5) RecvDataFilter = nproc.NewDataFilter("RecvDataFilter", 5) )
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
func ParseConfig(cfg string)
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `json:"debug"` Http *HttpConfig `json:"http"` Rpc *RpcConfig `json:"rpc"` Socket *SocketConfig `json:"socket"` Transfer *TransferConfig `json:"transfer"` }
func Config ¶
func Config() *GlobalConfig
type HttpConfig ¶
type SocketConfig ¶
type TransferConfig ¶
Click to show internal directories.
Click to hide internal directories.