Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(obj ObjectValidator) error
Types ¶
type Aggregate ¶
type Aggregate struct {
// contains filtered or unexported fields
}
func NewAggregate ¶
func NewAggregate() Aggregate
func (Aggregate) RegisterEventHandler ¶
func (a Aggregate) RegisterEventHandler(event Event, handler EventHandler)
type BaseEntity ¶
type BaseEntity struct {
UID string `json:"uid" validate:"required,uuid4"`
}
func NewBaseEntity ¶
func NewBaseEntity() BaseEntity
type BasePersistent ¶
type BasePersistent struct { ID int `json:"id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
func NewBasePersistent ¶
func NewBasePersistent() BasePersistent
type EventHandler ¶
type ObjectValidator ¶
type ObjectValidator interface {
Validate() error
}
Click to show internal directories.
Click to hide internal directories.