Versions in this module Expand all Collapse all v1 v1.0.0 Dec 31, 2022 Changes in this version + func ClearNotificationRegistrations() + func ClearRequestRegistrations() + func Publish(ctx context.Context, notification TNotification) error + func RegisterNotificationHandler(handler NotificationHandler[TEvent]) error + func RegisterNotificationHandlers(handlers ...NotificationHandler[TEvent]) error + func RegisterRequestHandler(handler RequestHandler[TRequest, TResponse]) error + func RegisterRequestPipelineBehaviors(behaviours ...PipelineBehavior) error + func Send(ctx context.Context, request TRequest) (TResponse, error) + type NotificationHandler interface + Handle func(ctx context.Context, notification TNotification) error + type PipelineBehavior interface + Handle func(ctx context.Context, request any, next RequestHandlerFunc) (any, error) + type RequestHandler interface + Handle func(ctx context.Context, request TRequest) (TResponse, error) + type RequestHandlerFunc func() (any, error) + type Unit struct