stats

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// keys of some tracked statistics
	TotalCommands        = "command_total"
	UnauthorizedCommands = "command_unauthorized"
	UnknownCommands      = "command_unknown"
)

Variables

This section is empty.

Functions

func Get

func Get(key string) (uint, error)

Get the counter value of of type

func Increase

func Increase(key string, count uint)

IncreaseOne is increasing the stats counter

func IncreaseOne

func IncreaseOne(key string)

IncreaseOne is increasing the stats counter of the given type by 1

Types

This section is empty.

Jump to

Keyboard shortcuts

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