application

package
v0.0.0-...-3a9fddd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Commands
	Queries
}

type Application

type Application struct {
	// contains filtered or unexported fields
}

func New

type Commands

type Commands interface {
	CreateShoppingList(ctx context.Context, cmd commands.CreateShoppingList) error
	CancelShoppingList(ctx context.Context, cmd commands.CancelShoppingList) error
	AssignShoppingList(ctx context.Context, cmd commands.AssignShoppingList) error
	CompleteShoppingList(ctx context.Context, cmd commands.CompleteShoppingList) error
}

type OrderHandlers

type OrderHandlers[T ddd.AggregateEvent] struct {
	// contains filtered or unexported fields
}

func (OrderHandlers[T]) HandleEvent

func (h OrderHandlers[T]) HandleEvent(ctx context.Context, event T) error

type ProductHandlers

type ProductHandlers[T ddd.Event] struct {
	// contains filtered or unexported fields
}

func (ProductHandlers[T]) HandleEvent

func (h ProductHandlers[T]) HandleEvent(ctx context.Context, event T) error

type Queries

type Queries interface {
	GetShoppingList(ctx context.Context, query queries.GetShoppingList) (*domain.ShoppingList, error)
}

type StoreHandlers

type StoreHandlers[T ddd.Event] struct {
	// contains filtered or unexported fields
}

func (StoreHandlers[T]) HandleEvent

func (h StoreHandlers[T]) HandleEvent(ctx context.Context, event T) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL