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

Method Get

pkg/csplugin/watcher.go:35–40  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

33}
34
35func (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
42func (acp *alertCounterByPluginName) Set(key string, val int) {
43 acp.Lock()

Callers 10

GetKeyFunction · 0.45
fireHandlerFunction · 0.45
smokeHandlerFunction · 0.45
rateLimitedHandlerFunction · 0.45
searchHandlerFunction · 0.45
CrowdsecCTIFunction · 0.45
smokeHandlerFunction · 0.45
TestFetchIndexFunction · 0.45
watchPluginTickerMethod · 0.45
ConnectionStringMethod · 0.45

Calls

no outgoing calls

Tested by 6

fireHandlerFunction · 0.36
smokeHandlerFunction · 0.36
rateLimitedHandlerFunction · 0.36
searchHandlerFunction · 0.36
smokeHandlerFunction · 0.36
TestFetchIndexFunction · 0.36