nop

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nop

type Nop struct{}

Nop implements Stats but with no operation.

func New

func New() *Nop

New creates new Nop stats

func (*Nop) Add

func (n *Nop) Add(metric string, value float64, opt stats.Option) error

func (*Nop) Gauge

func (n *Nop) Gauge(mmetric string, value float64, opt stats.Option) error

func (*Nop) Histogram

func (n *Nop) Histogram(metric string, value float64, opt stats.Option) error

func (*Nop) Increment

func (n *Nop) Increment(metric string, opt stats.Option) error

Jump to

Keyboard shortcuts

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