local

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broker

func Broker(options ...BrokerOption) eventsource.Broker

Broker creates a new local/in-memory broker that dispatches events to subscribers running just within this Go process.

Types

type BrokerOption

type BrokerOption func(*broker)

BrokerOption allows you to tweak the local broker's behavior in some way.

func WithErrorHandler

func WithErrorHandler(handler fail.ErrorHandler) BrokerOption

WithErrorHandler swaps the default error handler for this one.

Jump to

Keyboard shortcuts

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