appstats

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2017 License: BSD-3-Clause Imports: 2 Imported by: 0

README

Small helper for exposing application stats, currently via expvar.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFloat

func AddFloat(name string, value float64) error

AddFloat adds value to existing float

func AddInt

func AddInt(name string, delta int64) error

AddInt adds delta to int

func DecrementInt

func DecrementInt(name string) error

DecrementInt decrement int stat

func IncrementInt

func IncrementInt(name string) error

IncrementInt increment int stat

func MapAddFloat

func MapAddFloat(mapName, statName string, delta float64) error

MapAddFloat adds delta to a float in a map

func MapAddInt

func MapAddInt(mapName, statName string, delta int64) error

MapAddInt adds delta to int in a map

func MapDecrementInt added in v0.2.0

func MapDecrementInt(mapName, statName string) error

MapDecrementInt decrement int in a map

func MapIncrementInt added in v0.2.0

func MapIncrementInt(mapName, statName string) error

MapIncrementInt increment int in a map

func MapSet added in v0.2.0

func MapSet(mapName, statName string, v expvar.Var) error

MapSet statName to value in a map

func NewFloat

func NewFloat(name string) error

NewFloat creates a new float stat

func NewInt

func NewInt(name string) error

NewInt creates a new int stat

func NewMap

func NewMap(name string) error

NewMap creates a new map

func NewString

func NewString(name string) error

NewString creates a new string stat

func SetFloat

func SetFloat(name string, value float64) error

SetFloat sets a float stat to value

func SetInt

func SetInt(name string, value int64) error

SetInt sets int stat to value

func SetString

func SetString(name string, value string) error

SetString sets string stat to value

Types

This section is empty.

Jump to

Keyboard shortcuts

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