Versions in this module Expand all Collapse all v0 v0.42.0 May 14, 2022 Changes in this version + const ReserveDays + var ServerMetrics server.ServerMetrics + type Collector interface + GetProxiesByType func(proxyType string) []*ProxyStats + GetProxiesByTypeAndName func(proxyType string, proxyName string) *ProxyStats + GetProxyTraffic func(name string) *ProxyTrafficInfo + GetServer func() *ServerStats + var StatsCollector Collector + 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