MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / SetSourceScope

Method SetSourceScope

pkg/database/ent/mutation.go:961–963  ·  view source on GitHub ↗

SetSourceScope sets the "sourceScope" field.

(s string)

Source from the content-addressed store, hash-verified

959
960// SetSourceScope sets the "sourceScope" field.
961func (m *AlertMutation) SetSourceScope(s string) {
962 m.sourceScope = &s
963}
964
965// SourceScope returns the value of the "sourceScope" field in the mutation.
966func (m *AlertMutation) SourceScope() (r string, exists bool) {

Callers 4

SetFieldMethod · 0.95
createAlertBatchMethod · 0.45

Calls

no outgoing calls

Tested by 1