Home | History | Annotate | Download | only in expvar

Lines Matching defs:Map

100 // Map is a string-to-Var map variable that satisfies the Var interface.
101 type Map struct {
103 m map[string]Var
107 // KeyValue represents a single entry in a Map.
113 func (v *Map) String() string {
130 func (v *Map) Init() *Map {
131 v.m = make(map[string]Var)
137 func (v *Map) updateKeys() {
149 func (v *Map) Get(key string) Var {
155 func (v *Map) Set(key string, av Var) {
162 func (v *Map) Add(key string, delta int64) {
184 // AddFloat adds delta to the *Float value stored under the given map key.
185 func (v *Map) AddFloat(key string, delta float64) {
207 // Do calls f for each entry in the map.
208 // The map is locked during the iteration,
210 func (v *Map) Do(f func(KeyValue)) {
216 // doLocked calls f for each entry in the map.
218 func (v *Map) doLocked(f func(KeyValue)) {
268 vars = make(map[string]Var)
308 func NewMap(name string) *Map {
309 v := new(Map).Init()
321 // The global variable map is locked during the iteration,