stats

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	// contains filtered or unexported fields
}

func NewCounter

func NewCounter() Counter

func (Counter) Get

func (c Counter) Get() uint64

func (Counter) Inc

func (c Counter) Inc()

func (Counter) Reset

func (c Counter) Reset()

type Gauge

type Gauge struct {
	// contains filtered or unexported fields
}

func NewGauge

func NewGauge() *Gauge

func (Gauge) Dec

func (g Gauge) Dec()

func (Gauge) Get

func (g Gauge) Get() int64

func (Gauge) Inc

func (g Gauge) Inc()

type Indicator

type Indicator struct {
	// contains filtered or unexported fields
}

func NewIndicator

func NewIndicator(hi, lo int64) *Indicator

func (*Indicator) Get

func (i *Indicator) Get() bool

func (*Indicator) Observe

func (i *Indicator) Observe(val int64)

Jump to

Keyboard shortcuts

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