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

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

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

func (Application) CreateStore

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

func (Application) DecreaseProductPrice

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

func (Application) DisableParticipation

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

func (Application) EnableParticipation

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

func (Application) GetCatalog

func (a Application) GetCatalog(ctx context.Context, query queries.GetCatalog) (products []*domain.CatalogProduct, err error)

func (Application) GetParticipatingStores

func (a Application) GetParticipatingStores(ctx context.Context, query queries.GetParticipatingStores) (store []*domain.MallStore, err error)

func (Application) GetProduct

func (a Application) GetProduct(ctx context.Context, query queries.GetProduct) (product *domain.CatalogProduct, err error)

func (Application) GetStore

func (a Application) GetStore(ctx context.Context, query queries.GetStore) (store *domain.MallStore, err error)

func (Application) GetStores

func (a Application) GetStores(ctx context.Context, query queries.GetStores) (stores []*domain.MallStore, err error)

func (Application) IncreaseProductPrice

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

func (Application) RebrandProduct

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

func (Application) RebrandStore

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

func (Application) RemoveProduct

func (a Application) RemoveProduct(ctx context.Context, cmd commands.RemoveProduct) (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