Documentation ¶ Index ¶ func NewStats(resetTraffic bool) stats.Stats type Stats func (s *Stats) Add(kind stats.Kind, n int64) func (s *Stats) Get(kind stats.Kind) uint64 func (s *Stats) IsUpdated() bool func (s *Stats) Reset() type StatsEvent func (StatsEvent) Type() observer.EventType Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewStats ¶ func NewStats(resetTraffic bool) stats.Stats Types ¶ type Stats ¶ type Stats struct { // contains filtered or unexported fields } func (*Stats) Add ¶ func (s *Stats) Add(kind stats.Kind, n int64) func (*Stats) Get ¶ func (s *Stats) Get(kind stats.Kind) uint64 func (*Stats) IsUpdated ¶ func (s *Stats) IsUpdated() bool func (*Stats) Reset ¶ func (s *Stats) Reset() type StatsEvent ¶ type StatsEvent struct { Kind string Service string Client string TotalConns uint64 CurrentConns uint64 InputBytes uint64 OutputBytes uint64 TotalErrs uint64 } func (StatsEvent) Type ¶ func (StatsEvent) Type() observer.EventType Source Files ¶ View all Source files stats.go Directories ¶ Show internal Expand all Path Synopsis wrapper Click to show internal directories. Click to hide internal directories.