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

Method SetCreatedAt

pkg/database/ent/mutation.go:7849–7851  ·  view source on GitHub ↗

SetCreatedAt sets the "created_at" field.

(t time.Time)

Source from the content-addressed store, hash-verified

7847
7848// SetCreatedAt sets the "created_at" field.
7849func (m *EventMutation) SetCreatedAt(t time.Time) {
7850 m.created_at = &t
7851}
7852
7853// CreatedAt returns the value of the "created_at" field in the mutation.
7854func (m *EventMutation) CreatedAt() (r time.Time, exists bool) {

Callers 1

SetFieldMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected