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 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
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 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 ¶
Click to show internal directories.
Click to hide internal directories.