stats

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegistry

func GetRegistry() map[string]StatFn

GetRegistry returns current registry

func Register

func Register(name string, fn StatFn)

Register a new stats handler

Types

type StatFn

type StatFn func() exposition.Expositioner

StatFn is a func to build stat values to return

type Stats

type Stats map[string]exposition.Expositions

Stats is a point in time status of various metrics

func Get

func Get() Stats

Get returns a current copy of runtime stats.

func (Stats) String

func (s Stats) String() string

Directories

Path Synopsis
plugin
db

Jump to

Keyboard shortcuts

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