MCPcopy
hub / github.com/crowdsecurity/crowdsec / Set

Method Set

pkg/csplugin/watcher.go:42–46  ·  view source on GitHub ↗
(key string, val int)

Source from the content-addressed store, hash-verified

40}
41
42func (acp *alertCounterByPluginName) Set(key string, val int) {
43 acp.Lock()
44 acp.data[key] = val
45 acp.Unlock()
46}
47
48func (acp *alertCounterByPluginName) Inc(key string) {
49 acp.Lock()

Callers 7

UpdateCacheMetricsFunction · 0.45
doRequestMethod · 0.45
RoundTripMethod · 0.45
RoundTripMethod · 0.45
FetchIndexMethod · 0.45
watchPluginTickerMethod · 0.45
ConnectionStringMethod · 0.45

Calls

no outgoing calls

Tested by 1

RoundTripMethod · 0.36