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

Method String

pkg/appsec/appsec.go:47–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45)
46
47func (s hookStage) String() string {
48 switch s {
49 case hookOnLoad:
50 return "on_load"
51 case hookPreEval:
52 return "pre_eval"
53 case hookPostEval:
54 return "post_eval"
55 case hookOnMatch:
56 return "on_match"
57 default:
58 return "unknown"
59 }
60}
61
62// PhaseHooks bundles the three phase-scoped hook lists (pre_eval, post_eval,
63// on_match) that run during request evaluation. OnLoad is excluded because it

Callers 15

compactSchemaErrFunction · 0.45
DeregisterConsumerMethod · 0.45
RegisterConsumerMethod · 0.45
SubscribeToShardsMethod · 0.45
ReadFromShardMethod · 0.45
ReadFromStreamMethod · 0.45
newClientMethod · 0.45
WriteToStreamFunction · 0.45
getBucketContentMethod · 0.45

Calls

no outgoing calls

Tested by 15

compactSchemaErrFunction · 0.36
WriteToStreamFunction · 0.36
ReceiveMessageMethod · 0.36
ReceiveMessageMethod · 0.36
ReceiveMessageMethod · 0.36
TestOneShotAcquisitionFunction · 0.36
TestStreamingAcquisitionFunction · 0.36
TestStopStreamingFunction · 0.36
createLogGroupFunction · 0.36
createLogStreamFunction · 0.36