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

Method SetSourceIp

pkg/database/ent/mutation.go:576–578  ·  view source on GitHub ↗

SetSourceIp sets the "sourceIp" field.

(s string)

Source from the content-addressed store, hash-verified

574
575// SetSourceIp sets the "sourceIp" field.
576func (m *AlertMutation) SetSourceIp(s string) {
577 m.sourceIp = &s
578}
579
580// SourceIp returns the value of the "sourceIp" field in the mutation.
581func (m *AlertMutation) SourceIp() (r string, exists bool) {

Callers 3

SetFieldMethod · 0.95
createAlertBatchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected