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: 5 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
}

type Commands

type Commands interface {
	CreateOrder(ctx context.Context, cmd commands.CreateOrder) error
	CancelOrder(ctx context.Context, cmd commands.CancelOrder) error
	ReadyOrder(ctx context.Context, cmd commands.ReadyOrder) error
	CompleteOrder(ctx context.Context, cmd commands.CompleteOrder) error
}

type InvoiceHandlers

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

func (InvoiceHandlers[T]) HandleEvent

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

type NotificationHandlers

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

func (NotificationHandlers[T]) HandleEvent

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

type Queries

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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