Documentation ¶
Overview ¶
This package is a fork of the golang expvar expvar.Var types. Adding extra support for deleting and accessing raw typed values.
Index ¶
- type Float
- type FloatVar
- type Int
- type IntFuncGauge
- type IntSum
- type IntVar
- type Map
- func (v *Map) Add(key string, delta int64)
- func (v *Map) AddFloat(key string, delta float64)
- func (v *Map) Delete(key string)
- func (v *Map) Do(f func(expvar.KeyValue))
- func (v *Map) DoSorted(f func(expvar.KeyValue))
- func (v *Map) Get(key string) expvar.Var
- func (v *Map) Init() *Map
- func (v *Map) Set(key string, av expvar.Var)
- func (v *Map) String() string
- type String
- type StringVar
- type UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
Float is a 64-bit float variable that satisfies the expvar.Var interface.
func (*Float) FloatValue ¶
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
Int is a 64-bit integer variable that satisfies the expvar.Var interface.
type IntFuncGauge ¶
type IntFuncGauge struct {
ValueF func() int64
}
IntFuncGauge is a 64-bit integer variable that satisfies the expvar.Var interface.
func NewIntFuncGauge ¶
func NewIntFuncGauge(fn func() int64) *IntFuncGauge
func (*IntFuncGauge) Add ¶
func (v *IntFuncGauge) Add(delta int64)
func (*IntFuncGauge) IntValue ¶
func (v *IntFuncGauge) IntValue() int64
func (*IntFuncGauge) Set ¶
func (v *IntFuncGauge) Set(value int64)
func (*IntFuncGauge) String ¶
func (v *IntFuncGauge) String() string
type IntSum ¶
type IntSum struct {
// contains filtered or unexported fields
}
IntSum is a 64-bit integer variable that consists of multiple different parts and satisfies the expvar.Var interface. The value of the var is the sum of all its parts. The part names are opaque and are simply used to identfy each part.
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map is a string-to-expvar.Var map variable that satisfies the expvar.Var interface.
func (*Map) Do ¶
Do calls f for each entry in the map. The map is locked during the iteration, but existing entries may be concurrently updated.
type String ¶
type String struct {
// contains filtered or unexported fields
}
String is a string variable, and satisfies the expvar.Var interface.
func (*String) StringValue ¶
type UUID ¶
type UUID struct {
// contains filtered or unexported fields
}
UUID is a string variable that contain an UUID and satisfies the expvar.Var interface.