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

Method SourceAsNumber

pkg/database/ent/mutation.go:679–685  ·  view source on GitHub ↗

SourceAsNumber returns the value of the "sourceAsNumber" field in the mutation.

()

Source from the content-addressed store, hash-verified

677
678// SourceAsNumber returns the value of the "sourceAsNumber" field in the mutation.
679func (m *AlertMutation) SourceAsNumber() (r string, exists bool) {
680 v := m.sourceAsNumber
681 if v == nil {
682 return
683 }
684 return *v, true
685}
686
687// OldSourceAsNumber returns the old "sourceAsNumber" field's value of the Alert entity.
688// 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