Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseAggregate ¶
type BaseAggregate struct { ID uuid.UUID `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `json:"deleted_at"` Version uint64 `json:"version"` Events []events.Event `json:"events"` }
func (*BaseAggregate) GetID ¶
func (agg *BaseAggregate) GetID() uuid.UUID
func (*BaseAggregate) IncrementVersion ¶
func (agg *BaseAggregate) IncrementVersion()
func (*BaseAggregate) UpdateUpdatedAt ¶
func (agg *BaseAggregate) UpdateUpdatedAt(t time.Time)
Click to show internal directories.
Click to hide internal directories.