Documentation
¶
Index ¶
- func AddValidationPipeline(optFns ...func(options *pipelines.Options)) interface{}
- func AsNotificationHandler[TNotification mediator.Notification, ...](f any) []interface{}
- func AsPipelineBehavior(f any) interface{}
- func AsRequestHandler[TRequest mediator.Request[TResponse], TResponse interface{}](f any) []interface{}
- func NewModule() fx.Option
- func NewPublishContainer(param PublisherParams) mediator.PublishContainer
- func NewPublisher(container mediator.PublishContainer) mediator.Publisher
- func NewSendContainer(param SendContainerParams) mediator.SendContainer
- func NewSender(container mediator.SendContainer) mediator.Sender
- type PublisherParams
- type SendContainerParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddValidationPipeline ¶
func AsNotificationHandler ¶
func AsNotificationHandler[TNotification mediator.Notification, TNotificationHandler mediator.NotificationHandler[TNotification]](f any) []interface{}
func AsPipelineBehavior ¶
func AsPipelineBehavior(f any) interface{}
func AsRequestHandler ¶
func AsRequestHandler[TRequest mediator.Request[TResponse], TResponse interface{}](f any) []interface{}
func NewModule ¶ added in v1.1.0
NewModule returns a new fx.Option that provides the mediator components A PublishStrategy can be provided by the user, otherwise a synchronous strategy is used
func NewPublishContainer ¶ added in v1.1.0
func NewPublishContainer(param PublisherParams) mediator.PublishContainer
func NewPublisher ¶ added in v1.2.0
func NewPublisher(container mediator.PublishContainer) mediator.Publisher
func NewSendContainer ¶ added in v1.1.0
func NewSendContainer(param SendContainerParams) mediator.SendContainer
Types ¶
type PublisherParams ¶ added in v1.2.0
type SendContainerParams ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.