memory

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = eventbus.ErrClosed

Functions

This section is empty.

Types

type Bus

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

func New

func New(opts ...Option) *Bus

func (*Bus) Capability

func (b *Bus) Capability() eventbus.Capability

func (*Bus) Close

func (b *Bus) Close() error

func (*Bus) Publish

func (b *Bus) Publish(ctx context.Context, event *eventbus.Event) error

func (*Bus) Subscribe

func (b *Bus) Subscribe(ctx context.Context, topic string, handler eventbus.Handler) (eventbus.Subscription, error)

type Option

type Option func(*Bus)

func WithCodec

func WithCodec(codec eventbus.Codec) Option

func WithMiddleware

func WithMiddleware(middlewares ...eventbus.Middleware) Option

Jump to

Keyboard shortcuts

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