Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateBase ¶
type AggregateBase struct { ID string // contains filtered or unexported fields }
func (*AggregateBase) AddEvent ¶
func (a *AggregateBase) AddEvent(event Event)
func (AggregateBase) GetEvents ¶
func (a AggregateBase) GetEvents() []Event
func (AggregateBase) GetID ¶
func (a AggregateBase) GetID() string
type EntityBase ¶
type EntityBase struct {
ID string
}
func (EntityBase) GetID ¶
func (e EntityBase) GetID() string
type EventDispatcher ¶
type EventDispatcher struct {
// contains filtered or unexported fields
}
func NewEventDispatcher ¶
func NewEventDispatcher() *EventDispatcher
func (*EventDispatcher) Publish ¶
func (h *EventDispatcher) Publish(ctx context.Context, events ...Event) error
func (*EventDispatcher) Subscribe ¶
func (h *EventDispatcher) Subscribe(event Event, handler EventHandler)
type EventPublisher ¶
type EventSubscriber ¶
type EventSubscriber interface {
Subscribe(event Event, handler EventHandler)
}
Click to show internal directories.
Click to hide internal directories.