mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
21 lines
319 B
Go
21 lines
319 B
Go
package keelmongo
|
|
|
|
import "time"
|
|
|
|
type Entity interface {
|
|
SetID(string)
|
|
GetID() string
|
|
}
|
|
|
|
type EntityWithVersion interface {
|
|
GetVersion() uint32
|
|
IncreaseVersion() uint32
|
|
}
|
|
|
|
type EntityWithTimestamps interface {
|
|
SetCreatedAt(time.Time)
|
|
GetCreatedAt() time.Time
|
|
SetUpdatedAt(time.Time)
|
|
GetUpdatedAt() time.Time
|
|
}
|