Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface {
NotifyOrderCreated(ctx context.Context, notify OrderCreated) error
NotifyOrderCanceled(ctx context.Context, notify OrderCanceled) error
NotifyOrderReady(ctx context.Context, notify OrderReady) error
}
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func New ¶
func New(customers CustomerRepository) *Application
func (Application) NotifyOrderCanceled ¶
func (a Application) NotifyOrderCanceled(ctx context.Context, notify OrderCanceled) error
func (Application) NotifyOrderCreated ¶
func (a Application) NotifyOrderCreated(ctx context.Context, notify OrderCreated) error
func (Application) NotifyOrderReady ¶
func (a Application) NotifyOrderReady(ctx context.Context, notify OrderReady) error
type CustomerCacheRepository ¶
type CustomerHandlers ¶
func NewCustomerHandlers ¶
func NewCustomerHandlers(cache CustomerCacheRepository) CustomerHandlers[ddd.Event]
func (CustomerHandlers[T]) HandleEvent ¶
func (h CustomerHandlers[T]) HandleEvent(ctx context.Context, event T) error
type CustomerRepository ¶
type OrderCanceled ¶
type OrderCreated ¶
type OrderHandlers ¶
func NewOrderHandlers ¶
func NewOrderHandlers(app App) OrderHandlers[ddd.Event]
func (OrderHandlers[T]) HandleEvent ¶
func (h OrderHandlers[T]) HandleEvent(ctx context.Context, event T) error
type OrderReady ¶
Click to show internal directories.
Click to hide internal directories.