MCPcopy
hub / github.com/crowdsecurity/crowdsec / CreatedAt

Method CreatedAt

pkg/database/ent/mutation.go:8520–8526  ·  view source on GitHub ↗

CreatedAt returns the value of the "created_at" field in the mutation.

()

Source from the content-addressed store, hash-verified

8518
8519// CreatedAt returns the value of the "created_at" field in the mutation.
8520func (m *LockMutation) CreatedAt() (r time.Time, exists bool) {
8521 v := m.created_at
8522 if v == nil {
8523 return
8524 }
8525 return *v, true
8526}
8527
8528// OldCreatedAt returns the old "created_at" field's value of the Lock entity.
8529// If the Lock object wasn't provided to the builder, the object is fetched from the database.

Callers 15

FieldMethod · 0.95
defaultsMethod · 0.45
checkMethod · 0.45
createSpecMethod · 0.45
UpdateNewValuesMethod · 0.45
UpdateNewValuesMethod · 0.45
defaultsMethod · 0.45
checkMethod · 0.45
createSpecMethod · 0.45
UpdateNewValuesMethod · 0.45
UpdateNewValuesMethod · 0.45
defaultsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected