logging

package
v0.0.0-...-0ebfa01 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogCommandHandlerAccess

func LogCommandHandlerAccess[T ddd.Command](handlers ddd.CommandHandler[T], label string, logger zerolog.Logger) ddd.CommandHandler[T]

Types

type Application

type Application struct {
	application.App
	// contains filtered or unexported fields
}

func LogApplicationAccess

func LogApplicationAccess(application application.App, logger zerolog.Logger) Application

func (Application) CancelOrder

func (a Application) CancelOrder(ctx context.Context, cmd commands.CancelOrder) (err error)

func (Application) CompleteOrder

func (a Application) CompleteOrder(ctx context.Context, cmd commands.CompleteOrder) (err error)

func (Application) CreateOrder

func (a Application) CreateOrder(ctx context.Context, cmd commands.CreateOrder) (err error)

func (Application) GetOrder

func (a Application) GetOrder(ctx context.Context, query queries.GetOrder) (order *domain.Order, err error)

func (Application) ReadyOrder

func (a Application) ReadyOrder(ctx context.Context, cmd commands.ReadyOrder) (err error)

type CommandHandlers

type CommandHandlers[T ddd.Command] struct {
	ddd.CommandHandler[T]
	// contains filtered or unexported fields
}

func (CommandHandlers[T]) HandleCommand

func (h CommandHandlers[T]) HandleCommand(ctx context.Context, command T) (reply ddd.Reply, err error)

type EventHandlers

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

func LogEventHandlerAccess

func LogEventHandlerAccess[T ddd.Event](handlers ddd.EventHandler[T], label string, logger zerolog.Logger) EventHandlers[T]

func (EventHandlers[T]) HandleEvent

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

Jump to

Keyboard shortcuts

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