logging

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) AssignShoppingList

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

func (Application) CancelShoppingList

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

func (Application) CompleteShoppingList

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

func (Application) CreateShoppingList

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

func (Application) GetShoppingList

func (a Application) GetShoppingList(ctx context.Context, query queries.GetShoppingList) (list *domain.ShoppingList,
	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