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

Method SetOrigin

pkg/database/ent/mutation.go:6949–6951  ·  view source on GitHub ↗

SetOrigin sets the "origin" field.

(s string)

Source from the content-addressed store, hash-verified

6947
6948// SetOrigin sets the "origin" field.
6949func (m *DecisionMutation) SetOrigin(s string) {
6950 m.origin = &s
6951}
6952
6953// Origin returns the value of the "origin" field in the mutation.
6954func (m *DecisionMutation) Origin() (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