Documentation ¶
Index ¶
- func ContextWithCorrelationID(ctx context.Context, correlationID string) context.Context
- func CorrelationIdFromContext(ctx context.Context) (string, error)
- func NewCommandDecorator[C any](base CommandHandler[C], logger *logs.Logger) commandDecorator[C]
- func NewCommandWithResultDecorator[C, R any](base CommandWithResultHandler[C, R], logger *logs.Logger) commandWithResultDecorator[C, R]
- func NewCorrelationID() string
- func NewQueryDecorator[Q any, R any](base QueryHandler[Q, R], logger *logs.Logger) queryDecorator[Q, R]
- type CommandHandler
- type CommandWithResultHandler
- type QueryHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommandDecorator ¶
func NewCommandDecorator[C any](base CommandHandler[C], logger *logs.Logger) commandDecorator[C]
func NewCommandWithResultDecorator ¶
func NewCommandWithResultDecorator[C, R any](base CommandWithResultHandler[C, R], logger *logs.Logger) commandWithResultDecorator[C, R]
func NewCorrelationID ¶
func NewCorrelationID() string
func NewQueryDecorator ¶
func NewQueryDecorator[Q any, R any](base QueryHandler[Q, R], logger *logs.Logger) queryDecorator[Q, R]
Types ¶
type CommandHandler ¶
Click to show internal directories.
Click to hide internal directories.