Documentation ¶ Index ¶ type ByValue func Count(data map[string]int) ByValue func (a ByValue) Len() int func (a ByValue) Less(i, j int) bool func (a ByValue) Swap(i, j int) type KV type Stats func New() *Stats func (s *Stats) Feed(line monitor.Line) func (s *Stats) Reset() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ByValue ¶ type ByValue []KV func Count ¶ func Count(data map[string]int) ByValue func (ByValue) Len ¶ func (a ByValue) Len() int func (ByValue) Less ¶ func (a ByValue) Less(i, j int) bool func (ByValue) Swap ¶ func (a ByValue) Swap(i, j int) type KV ¶ type KV struct { K string V int } type Stats ¶ type Stats struct { Commands map[string]int Ips map[string]int } func New ¶ func New() *Stats func (*Stats) Feed ¶ func (s *Stats) Feed(line monitor.Line) func (*Stats) Reset ¶ func (s *Stats) Reset() Source Files ¶ View all Source files stats.go Click to show internal directories. Click to hide internal directories.