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 {
102 m sync.Map // map[string]Var
107 // KeyValue represents a single entry in a Map.
113 func (v *Map) String() string {
128 // Init removes all keys from the map.
129 func (v *Map) Init() *Map {
141 func (v *Map) addKey(key string) {
148 func (v *Map) Get(key string) Var {
154 func (v *Map) Set(key string, av Var) {
168 // Add adds delta to the *Int value stored under the given map key.
169 func (v *Map) Add(key string, delta int64) {
185 // AddFloat adds delta to the *Float value stored under the given map key.
186 func (v *Map) AddFloat(key string, delta float64) {
202 // Do calls f for each entry in the map.
203 // The map is locked during the iteration,
205 func (v *Map) Do(f func(KeyValue)) {
251 vars sync.Map // map[string]Var
291 func NewMap(name string) *Map {
292 v := new(Map).Init()
304 // The global variable map is locked during the iteration,