(key string)
| 33 | } |
| 34 | |
| 35 | func (acp *alertCounterByPluginName) Get(key string) (int, bool) { |
| 36 | acp.Lock() |
| 37 | val, ok := acp.data[key] |
| 38 | acp.Unlock() |
| 39 | return val, ok |
| 40 | } |
| 41 | |
| 42 | func (acp *alertCounterByPluginName) Set(key string, val int) { |
| 43 | acp.Lock() |
no outgoing calls