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

Method SourceRange

pkg/database/ent/mutation.go:630–636  ·  view source on GitHub ↗

SourceRange returns the value of the "sourceRange" field in the mutation.

()

Source from the content-addressed store, hash-verified

628
629// SourceRange returns the value of the "sourceRange" field in the mutation.
630func (m *AlertMutation) SourceRange() (r string, exists bool) {
631 v := m.sourceRange
632 if v == nil {
633 return
634 }
635 return *v, true
636}
637
638// OldSourceRange returns the old "sourceRange" field's value of the Alert entity.
639// If the Alert object wasn't provided to the builder, the object is fetched from the database.

Callers 4

FieldMethod · 0.95
createSpecMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected