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

Method SetNillableUpdatedAt

pkg/database/ent/alert_create.go:50–55  ·  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

48
49// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
50func (_c *AlertCreate) SetNillableUpdatedAt(v *time.Time) *AlertCreate {
51 if v != nil {
52 _c.SetUpdatedAt(*v)
53 }
54 return _c
55}
56
57// SetScenario sets the "scenario" field.
58func (_c *AlertCreate) SetScenario(v string) *AlertCreate {

Callers

nothing calls this directly

Calls 1

SetUpdatedAtMethod · 0.95

Tested by

no test coverage detected