stats

package
v0.0.0-...-d323686 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHistSample

func AddHistSample(name string, val float64)

AddHistSample Async publish a value (add a sample) to a histogram variable.

func Inc

func Inc(name string, val int)

Inc Async publish an increment (decrement) to int variable.

func Init

func Init(app *fiber.App, path string)

Init Initialize stats reporting through expvar.

func RegisterDbStats

func RegisterDbStats()

func RegisterHistogram

func RegisterHistogram(name string, bounds []float64)

RegisterHistogram Register histogram variable. `bounds` specifies histogram buckets/bins (see comment next to the `histogram` struct definition).

func RegisterInt

func RegisterInt(name string)

RegisterInt Register integer variable. Don't check for initialization.

func Set

func Set(name string, val int64)

Set Async publish int variable.

func Shutdown

func Shutdown()

Shutdown Stop publishing stats.

Types

This section is empty.

Jump to

Keyboard shortcuts

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