watermill

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

func NewRouter

func NewRouter(ctx context.Context, outHandler message.NoPublishHandlerFunc) Router

func (Router) CreateMessageSender

func (v Router) CreateMessageSender(helper affinity.Helper, accessor beat.History) messagesender.Service

func (Router) IsZero

func (v Router) IsZero() bool

func (Router) PublishMessage

func (v Router) PublishMessage(topic string, msg *message.Message) error

func (Router) ReplacePublisher

func (v Router) ReplacePublisher(publisher message.Publisher) Router

func (Router) SubscribeForMessages

func (v Router) SubscribeForMessages(inHandler func(beat.Message) error) (stopFn func())

Jump to

Keyboard shortcuts

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