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

Method SetLastPush

pkg/database/ent/machine_create.go:56–59  ·  view source on GitHub ↗

SetLastPush sets the "last_push" field.

(v time.Time)

Source from the content-addressed store, hash-verified

54
55// SetLastPush sets the "last_push" field.
56func (_c *MachineCreate) SetLastPush(v time.Time) *MachineCreate {
57 _c.mutation.SetLastPush(v)
58 return _c
59}
60
61// SetNillableLastPush sets the "last_push" field if the given value is not nil.
62func (_c *MachineCreate) SetNillableLastPush(v *time.Time) *MachineCreate {

Callers 2

SetNillableLastPushMethod · 0.95
defaultsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected