eventruntime

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPublisherForBus

func NewPublisherForBus(catalog *eventcatalog.Catalog, bus messaging.EventBus, source string) event.Publisher

Types

type PublishMode

type PublishMode string
const (
	PublishModeMQ      PublishMode = "mq"
	PublishModeLogging PublishMode = "logging"
	PublishModeNop     PublishMode = "nop"
)

type RoutingPublisher

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

func NewRoutingPublisher

func NewRoutingPublisher(opts RoutingPublisherOptions) *RoutingPublisher

func (*RoutingPublisher) Publish

func (p *RoutingPublisher) Publish(ctx context.Context, evt event.DomainEvent) error

func (*RoutingPublisher) PublishAll

func (p *RoutingPublisher) PublishAll(ctx context.Context, events []event.DomainEvent) error

type RoutingPublisherOptions

type RoutingPublisherOptions struct {
	Catalog       *eventcatalog.Catalog
	TopicResolver eventcatalog.TopicResolver
	Delivery      eventcatalog.DeliveryClassResolver
	MQPublisher   messaging.Publisher
	Source        string
	Mode          PublishMode
}

Jump to

Keyboard shortcuts

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