SetCounter will set a counter to the provided value.
(key string, val int64)
| 52 | } |
| 53 | |
| 54 | // SetCounter will set a counter to the provided value. |
| 55 | func (s Stats) SetCounter(key string, val int64) { |
| 56 | mux.Lock() |
| 57 | s.counters[key] = val |
| 58 | mux.Unlock() |
| 59 | } |
| 60 | |
| 61 | // Get returns an map of counters |