stats

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL