Documentation
¶
Index ¶
Constants ¶
View Source
const (
ReserveDays = 7
)
Variables ¶
View Source
var ServerMetrics server.ServerMetrics
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface {
GetServer() *ServerStats
GetProxiesByType(proxyType string) []*ProxyStats
GetProxiesByTypeAndName(proxyType string, proxyName string) *ProxyStats
GetProxyTraffic(name string) *ProxyTrafficInfo
}
var StatsCollector Collector
type ProxyStatistics ¶
type ProxyStats ¶
type ProxyTrafficInfo ¶
type ServerStatistics ¶
type ServerStatistics struct {
TotalTrafficIn metric.DateCounter
TotalTrafficOut metric.DateCounter
CurConns metric.Counter
// counter for clients
ClientCounts metric.Counter
// counter for proxy types
ProxyTypeCounts map[string]metric.Counter
// statistics for different proxies
// key is proxy name
ProxyStatistics map[string]*ProxyStatistics
}
Click to show internal directories.
Click to hide internal directories.