Versions in this module Expand all Collapse all v0 v0.23.1 Jan 16, 2019 v0.23.0 Jan 15, 2019 Changes in this version + const ReserveDays + type AddTrafficInPayload struct + ProxyName string + TrafficBytes int64 + type AddTrafficOutPayload struct + ProxyName string + TrafficBytes int64 + type CloseClientPayload struct + type CloseConnectionPayload struct + ProxyName string + type CloseProxyPayload struct + Name string + ProxyType string + type Collector interface + GetProxiesByType func(proxyType string) []*ProxyStats + GetProxiesByTypeAndName func(proxyType string, proxyName string) *ProxyStats + GetProxyTraffic func(name string) *ProxyTrafficInfo + GetServer func() *ServerStats + Mark func(statsType StatsType, payload interface{}) + Run func() error + func NewInternalCollector(enable bool) Collector + type NewClientPayload struct + type NewProxyPayload struct + Name string + ProxyType string + type OpenConnectionPayload struct + ProxyName string + type ProxyStatistics struct + CurConns metric.Counter + LastCloseTime time.Time + LastStartTime time.Time + Name string + ProxyType string + TrafficIn metric.DateCounter + TrafficOut metric.DateCounter + type ProxyStats struct + CurConns int64 + LastCloseTime string + LastStartTime string + Name string + TodayTrafficIn int64 + TodayTrafficOut int64 + Type string + type ProxyTrafficInfo struct + Name string + TrafficIn []int64 + TrafficOut []int64 + type ServerStatistics struct + ClientCounts metric.Counter + CurConns metric.Counter + ProxyStatistics map[string]*ProxyStatistics + ProxyTypeCounts map[string]metric.Counter + TotalTrafficIn metric.DateCounter + TotalTrafficOut metric.DateCounter + type ServerStats struct + ClientCounts int64 + CurConns int64 + ProxyTypeCounts map[string]int64 + TotalTrafficIn int64 + TotalTrafficOut int64 + type StatsType int + const TypeAddTrafficIn + const TypeAddTrafficOut + const TypeCloseClient + const TypeCloseConnection + const TypeCloseProxy + const TypeNewClient + const TypeNewProxy + const TypeOpenConnection