Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEntity ¶
type BaseEntity struct {
// contains filtered or unexported fields
}
BaseEntity contains required fields
func NewBaseEntityWithID ¶
func NewBaseEntityWithID(id uint64) *BaseEntity
NewBaseEntityWithID return new entity with id
func (*BaseEntity) GetVersion ¶
func (e *BaseEntity) GetVersion() uint64
GetVersion return current version of object
func (*BaseEntity) SetVersion ¶
func (e *BaseEntity) SetVersion(v uint64)
SetVersion set current version
type Versionable ¶
type Versionable interface {
GetVersion() uint64
UpVersion()
}
Versionable describe version for entity
Click to show internal directories.
Click to hide internal directories.