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

Method SetScope

pkg/database/ent/mutation.go:6877–6879  ·  view source on GitHub ↗

SetScope sets the "scope" field.

(s string)

Source from the content-addressed store, hash-verified

6875
6876// SetScope sets the "scope" field.
6877func (m *DecisionMutation) SetScope(s string) {
6878 m.scope = &s
6879}
6880
6881// Scope returns the value of the "scope" field in the mutation.
6882func (m *DecisionMutation) Scope() (r string, exists bool) {

Callers 13

SetFieldMethod · 0.95
createDecisionFunction · 0.45
CreateOrUpdateAlertMethod · 0.45
createDecisionBatchMethod · 0.45
TestAPICCAPIPullIsOldFunction · 0.45
TestAPICWhitelistsFunction · 0.45
TestAPICPullTopFunction · 0.45
TestGetDecisionsCountFunction · 0.45

Calls

no outgoing calls

Tested by 9

createDecisionFunction · 0.36
TestAPICCAPIPullIsOldFunction · 0.36
TestAPICWhitelistsFunction · 0.36
TestAPICPullTopFunction · 0.36
TestGetDecisionsCountFunction · 0.36