Versions in this module Expand all Collapse all v1 v1.0.1 Dec 7, 2016 v1.0.0 Sep 30, 2016 Changes in this version + const COLLECT_INTERVAL + const DU_BS + const NET_PORT_LISTEN + const PROC_NUM + const VERSION + var ConfigFile string + var LocalIps []string + var Root string + var TransferClients map[string]*SingleConnRpcClient = map[string]*SingleConnRpcClient + var TransferClientsLock *sync.RWMutex = new(sync.RWMutex) + func DuPaths() []string + func Hostname() (string, error) + func IP() string + func InitLocalIps() + func InitLog() + func InitRootDir() + func InitRpcClients() + func IsTrustable(remoteAddr string) bool + func Logger() *log.Logger + func ParseConfig(cfg string) + func ReportPorts() []int64 + func ReportProcs() map[string]map[int]string + func ReportUrls() map[string]string + func SendMetrics(metrics []*model.MetricValue, resp *model.TransferResponse) + func SendToTransfer(metrics []*model.MetricValue) + func SetDuPaths(paths []string) + func SetReportPorts(ports []int64) + func SetReportProcs(procs map[string]map[int]string) + func SetReportUrls(urls map[string]string) + func SetTrustableIps(ipStr string) + func TrustableIps() []string + type CollectorConfig struct + IfacePrefix []string + type GlobalConfig struct + Collector *CollectorConfig + Debug bool + Heartbeat *HeartbeatConfig + Hostname string + Http *HttpConfig + IIs *IIsConfig + IP string + IgnoreMetrics map[string]bool + Logfile string + MsSQL *MsSQLConfig + Transfer *TransferConfig + func Config() *GlobalConfig + type HeartbeatConfig struct + Addr string + Enabled bool + Interval int + Timeout int + type HttpConfig struct + Backdoor bool + Enabled bool + Listen string + type IIsConfig struct + Enabled bool + Websites []string + type MsSQLConfig struct + Addr string + Enabled bool + Encrypt string + Instance []string + Password string + Port int + Username string + type SingleConnRpcClient struct + RpcServer string + Timeout time.Duration + var HbsClient *SingleConnRpcClient + func (this *SingleConnRpcClient) Call(method string, args interface{}, reply interface{}) error + type TransferConfig struct + Addrs []string + Enabled bool + Interval int + Timeout int