MCPcopy Create free account
hub / github.com/crowdsecurity/crowdsec / SetCreatedAt

Method SetCreatedAt

pkg/database/ent/machine_create.go:28–31  ·  view source on GitHub ↗

SetCreatedAt sets the "created_at" field.

(v time.Time)

Source from the content-addressed store, hash-verified

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

Callers 2

SetNillableCreatedAtMethod · 0.95
defaultsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected