grouphandler

package
v1.0.0-beta.193 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupEventHandler

type GroupEventHandler = cqrs.GroupEventHandler

func NewGroupEventHandler

func NewGroupEventHandler[T any](handleFunc func(ctx context.Context, event *T) error) GroupEventHandler

type NoPublishingHandler

type NoPublishingHandler struct {
	// contains filtered or unexported fields
}

func NewNoPublishingHandler

func NewNoPublishingHandler(marshaler cqrs.CommandEventMarshaler, metricMeter metric.Meter, groupHandlers ...GroupEventHandler) (*NoPublishingHandler, error)

NewNoPublishingHandler creates a NoPublishHandlerFunc that will handle events with the provided GroupEventHandlers.

func (*NoPublishingHandler) AddHandler

func (h *NoPublishingHandler) AddHandler(handler GroupEventHandler)

func (*NoPublishingHandler) Handle

func (h *NoPublishingHandler) Handle(msg *message.Message) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL