Versions in this module Expand all Collapse all v0 v0.2.1 Aug 15, 2017 v0.2.0 Jun 18, 2017 Changes in this version + const COMMIT + const VERSION + var Blocking = nproc.NewSCounterBase("nodata.blocking") + var CollectorCnt = nproc.NewSCounterQps("CollectorCnt") + var CollectorCronCnt = nproc.NewSCounterQps("CollectorCronCnt") + var CollectorLastCnt = nproc.NewSCounterBase("CollectorLastCnt") + var CollectorLastTs = nproc.NewSCounterBase("CollectorLastTs") + var ConfigCronCnt = nproc.NewSCounterQps("ConfigCronCnt") + var ConfigFile string + var ConfigLastCnt = nproc.NewSCounterBase("ConfigLastCnt") + var ConfigLastTs = nproc.NewSCounterBase("ConfigLastTs") + var FloodRate = nproc.NewSCounterBase("FloodRate") + var JudgeCronCnt = nproc.NewSCounterQps("JudgeCronCnt") + var JudgeLastTs = nproc.NewSCounterBase("JudgeLastTs") + var SenderCnt = nproc.NewSCounterQps("SenderCnt") + var SenderCronCnt = nproc.NewSCounterQps("SenderCronCnt") + var SenderLastTs = nproc.NewSCounterBase("SenderLastTs") + var Threshold = nproc.NewSCounterBase("Threshold") + func GetAllCounters() []interface + func ParseConfig(cfg string) + func StartProc() + type CollectorConfig struct + Batch int32 + Concurrent int32 + Enabled bool + type GlobalConfig struct + Collector *CollectorConfig + Config *NdConfig + Debug bool + Http *HttpConfig + PlusApi *PlusAPIConfig + Sender *SenderConfig + func Config() *GlobalConfig + type HttpConfig struct + Enabled bool + Listen string + type NdConfig struct + Dsn string + Enabled bool + MaxIdle int32 + type PlusAPIConfig struct + Addr string + ConnectTimeout int32 + RequestTimeout int32 + Token string + type SenderConfig struct + Batch int32 + ConnectTimeout int32 + Enabled bool + RequestTimeout int32 + TransferAddr string