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

Method SetNillableUpdatedAt

pkg/database/ent/event_create.go:47–52  ·  view source on GitHub ↗

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

(v *time.Time)

Source from the content-addressed store, hash-verified

45
46// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
47func (_c *EventCreate) SetNillableUpdatedAt(v *time.Time) *EventCreate {
48 if v != nil {
49 _c.SetUpdatedAt(*v)
50 }
51 return _c
52}
53
54// SetTime sets the "time" field.
55func (_c *EventCreate) SetTime(v time.Time) *EventCreate {

Callers

nothing calls this directly

Calls 1

SetUpdatedAtMethod · 0.95

Tested by

no test coverage detected