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

Method Origin

pkg/database/ent/mutation.go:6954–6960  ·  view source on GitHub ↗

Origin returns the value of the "origin" field in the mutation.

()

Source from the content-addressed store, hash-verified

6952
6953// Origin returns the value of the "origin" field in the mutation.
6954func (m *DecisionMutation) Origin() (r string, exists bool) {
6955 v := m.origin
6956 if v == nil {
6957 return
6958 }
6959 return *v, true
6960}
6961
6962// OldOrigin returns the old "origin" field's value of the Decision entity.
6963// If the Decision object wasn't provided to the builder, the object is fetched from the database.

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected