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

Method SetSourceAsName

pkg/database/ent/mutation.go:723–725  ·  view source on GitHub ↗

SetSourceAsName sets the "sourceAsName" field.

(s string)

Source from the content-addressed store, hash-verified

721
722// SetSourceAsName sets the "sourceAsName" field.
723func (m *AlertMutation) SetSourceAsName(s string) {
724 m.sourceAsName = &s
725}
726
727// SourceAsName returns the value of the "sourceAsName" field in the mutation.
728func (m *AlertMutation) SourceAsName() (r string, exists bool) {

Callers 3

SetFieldMethod · 0.95
createAlertBatchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected