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

Method SetCreatedAt

pkg/database/ent/mutation.go:8877–8879  ·  view source on GitHub ↗

SetCreatedAt sets the "created_at" field.

(t time.Time)

Source from the content-addressed store, hash-verified

8875
8876// SetCreatedAt sets the "created_at" field.
8877func (m *MachineMutation) SetCreatedAt(t time.Time) {
8878 m.created_at = &t
8879}
8880
8881// CreatedAt returns the value of the "created_at" field in the mutation.
8882func (m *MachineMutation) CreatedAt() (r time.Time, exists bool) {

Callers 1

SetFieldMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected