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

Method Get

pkg/acquisition/modules/appsec/source.go:54–60  ·  view source on GitHub ↗
(apiKey string)

Source from the content-addressed store, hash-verified

52}
53
54func (ac *AuthCache) Get(apiKey string) (time.Time, bool) {
55 ac.mu.RLock()
56 expiration, exists := ac.APIKeys[apiKey]
57 ac.mu.RUnlock()
58
59 return expiration, exists
60}
61
62func (ac *AuthCache) Delete(apiKey string) {
63 ac.mu.Lock()

Callers 6

authorizeRequestFunction · 0.45
processRequestMethod · 0.45
checkAuthMethod · 0.45
appsecHandlerMethod · 0.45
testAppSecEngineFunction · 0.45

Calls

no outgoing calls