vars

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Each

func Each(fn func(key string, val expvar.Var))

func Float

func Float(name string) *expvar.Float

func Has

func Has(name string) bool

func Int

func Int(name string) *expvar.Int

func Map

func Map(name string) *expvar.Map

func Register

func Register(name string, data func() interface{})

func String

func String(name string) *expvar.String

Types

type Publisher added in v0.1.26

type Publisher func(name string, data func() interface{})

func (Publisher) Do added in v0.1.26

func (v Publisher) Do(name string, data func() interface{})

func (Publisher) Publish added in v0.1.26

func (v Publisher) Publish(name string, data func() interface{})

type Value added in v0.2.4

type Value func() interface{}

func (Value) String added in v0.2.4

func (f Value) String() (r string)

func (Value) Value added in v0.2.4

func (f Value) Value() interface{}

Jump to

Keyboard shortcuts

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