Documentation
¶
Index ¶
- type Aggregate
- func (a *Aggregate) AddEvent(e Event)
- func (a *Aggregate) CreatedAt() time.Time
- func (a *Aggregate) DeletedAt() *time.Time
- func (a *Aggregate) Events() []Event
- func (a *Aggregate) ID() string
- func (a *Aggregate) IsDeleted() bool
- func (a *Aggregate) PullEvents() []Event
- func (a *Aggregate) SoftDelete()
- func (a *Aggregate) Touch()
- func (a *Aggregate) UpdatedAt() time.Time
- func (a *Aggregate) Version() int32
- type Bus
- type Command
- type Domain
- type Event
- type Query
- type Repository
- type ValueObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregate ¶
type Aggregate struct {
// contains filtered or unexported fields
}
func ExistingAggregate ¶ added in v0.1.8
func NewAggregate ¶
func (*Aggregate) PullEvents ¶
func (*Aggregate) SoftDelete ¶
func (a *Aggregate) SoftDelete()
type Repository ¶
type ValueObject ¶
type ValueObject interface {
Equals(other ValueObject) bool
}
ValueObject is a marker interface for DDD value objects
Click to show internal directories.
Click to hide internal directories.