stats

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(p Provider)

Types

type Provider

type Provider interface {
	Stats() map[string]interface{}
}

type ProviderFunc

type ProviderFunc func() map[string]interface{}

func (ProviderFunc) Stats

func (f ProviderFunc) Stats() map[string]interface{}

type Stats

type Stats map[string]interface{}

func Collect

func Collect() Stats

func (Stats) Int

func (m Stats) Int(key string) int

func (Stats) Int64

func (m Stats) Int64(key string) int64

func (Stats) Time

func (m Stats) Time(key string) time.Time

Jump to

Keyboard shortcuts

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