Documentation ¶
Index ¶
- func New(orders OrderRepository) *app
- type Application
- type CustomerCacheRepository
- type CustomerHandlers
- type CustomerRepository
- type Filters
- type GetOrder
- type OrderHandlers
- type OrderRepository
- type ProductCacheRepository
- type ProductHandlers
- type ProductRepository
- type SearchOrders
- type StoreCacheRepository
- type StoreHandlers
- type StoreRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(orders OrderRepository) *app
Types ¶
type Application ¶
type CustomerCacheRepository ¶
type CustomerCacheRepository interface { Add(ctx context.Context, customerID, name string) error CustomerRepository }
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 OrderHandlers ¶
func NewOrderHandlers ¶
func NewOrderHandlers(orders OrderRepository, customers CustomerRepository, stores StoreRepository, products ProductRepository) OrderHandlers[ddd.Event]
func (OrderHandlers[T]) HandleEvent ¶
func (h OrderHandlers[T]) HandleEvent(ctx context.Context, event T) error
type OrderRepository ¶
type ProductCacheRepository ¶
type ProductHandlers ¶
func NewProductHandlers ¶
func NewProductHandlers(cache ProductCacheRepository) ProductHandlers[ddd.Event]
func (ProductHandlers[T]) HandleEvent ¶
func (h ProductHandlers[T]) HandleEvent(ctx context.Context, event T) error
type ProductRepository ¶
type SearchOrders ¶
type StoreCacheRepository ¶
type StoreHandlers ¶
func NewStoreHandlers ¶
func NewStoreHandlers(cache StoreCacheRepository) StoreHandlers[ddd.Event]
func (StoreHandlers[T]) HandleEvent ¶
func (h StoreHandlers[T]) HandleEvent(ctx context.Context, event T) error
Click to show internal directories.
Click to hide internal directories.