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

Method SetCreatedAt

pkg/database/ent/mutation.go:202–204  ·  view source on GitHub ↗

SetCreatedAt sets the "created_at" field.

(t time.Time)

Source from the content-addressed store, hash-verified

200
201// SetCreatedAt sets the "created_at" field.
202func (m *AlertMutation) SetCreatedAt(t time.Time) {
203 m.created_at = &t
204}
205
206// CreatedAt returns the value of the "created_at" field in the mutation.
207func (m *AlertMutation) CreatedAt() (r time.Time, exists bool) {

Callers 1

SetFieldMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected