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

Method SetCreatedAt

pkg/database/ent/allowlist_create.go:27–30  ·  view source on GitHub ↗

SetCreatedAt sets the "created_at" field.

(v time.Time)

Source from the content-addressed store, hash-verified

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

Callers 2

SetNillableCreatedAtMethod · 0.95
defaultsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected