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

Method Time

pkg/database/ent/mutation.go:7926–7932  ·  view source on GitHub ↗

Time returns the value of the "time" field in the mutation.

()

Source from the content-addressed store, hash-verified

7924
7925// Time returns the value of the "time" field in the mutation.
7926func (m *EventMutation) Time() (r time.Time, exists bool) {
7927 v := m.time
7928 if v == nil {
7929 return
7930 }
7931 return *v, true
7932}
7933
7934// OldTime returns the old "time" field's value of the Event entity.
7935// If the Event object wasn't provided to the builder, the object is fetched from the database.

Callers 15

FieldMethod · 0.95
AddToAllowlistMethod · 0.80
checkMethod · 0.80
createSpecMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80
FieldsMethod · 0.80
FieldsMethod · 0.80
FieldsMethod · 0.80
FieldsMethod · 0.80
FieldsMethod · 0.80
FieldsMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestTimestampTimeFunction · 0.64
TestTimestampDurationFunction · 0.64