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

Method SetCreatedAt

pkg/database/ent/alert_create.go:30–33  ·  view source on GitHub ↗

SetCreatedAt sets the "created_at" field.

(v time.Time)

Source from the content-addressed store, hash-verified

28
29// SetCreatedAt sets the "created_at" field.
30func (_c *AlertCreate) SetCreatedAt(v time.Time) *AlertCreate {
31 _c.mutation.SetCreatedAt(v)
32 return _c
33}
34
35// SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
36func (_c *AlertCreate) SetNillableCreatedAt(v *time.Time) *AlertCreate {

Callers 2

SetNillableCreatedAtMethod · 0.95
defaultsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected