expvar

package
v1.2.115 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Leak

type Leak struct {
	Leak expvar.Int // Leak = New - Delete
	New  expvar.Int // New
}

Leak is a pair of 64-bit integer variables that satisfies the Var interface.

func NewLeak

func NewLeak(name string) *Leak

func (*Leak) Add

func (v *Leak) Add(delta int64)

Add adds delta, which may be negative, to the Leak counter.

func (*Leak) Done

func (v *Leak) Done()

Done decrements the Leak counter by one.

func (*Leak) String

func (v *Leak) String() string

func (*Leak) Value

func (v *Leak) Value() int64

Value returns the Leak counter.

Jump to

Keyboard shortcuts

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