Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandHandler ¶
CommandHandler returns an error.
type CommandHandlerFunc ¶
type QueryHandler ¶
QueryHandler returns a value and an error.
type QueryHandlerFunc ¶
type RequestHandler ¶
RequestHandler accepts a request, and returns an error.
type RequestHandlerFunc ¶
func (RequestHandlerFunc[T]) Exec ¶
func (h RequestHandlerFunc[T]) Exec(ctx context.Context, v T) error
func (RequestHandlerFunc[T]) ToCommandHandler ¶
func (h RequestHandlerFunc[T]) ToCommandHandler(ctx context.Context, v T) CommandHandler
type RequestReplyHandler ¶
RequestReplyHandler accepts a request, and returns a value and an error.
type RequestReplyHandlerFunc ¶
func (RequestReplyHandlerFunc[T, U]) Exec ¶
func (h RequestReplyHandlerFunc[T, U]) Exec(ctx context.Context, v T) (U, error)
func (RequestReplyHandlerFunc[T, U]) ToQueryHandler ¶
func (h RequestReplyHandlerFunc[T, U]) ToQueryHandler(ctx context.Context, v T) QueryHandler[U]
type SilentHandler ¶
SilentHandler is similar like CommandHandler, but returns no error.
type SilentRequestHandler ¶
SilentRequestHandler is similar like RequestHandler, but returns no error.
Click to show internal directories.
Click to hide internal directories.