eventbus

package
v0.0.0-...-600703a Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

type Bus[T any] struct {
	// contains filtered or unexported fields
}

func NewBus

func NewBus[T any]() *Bus[T]

func (*Bus[T]) PublishEvent

func (b *Bus[T]) PublishEvent(event T)

func (*Bus[T]) StartDispatcher

func (b *Bus[T]) StartDispatcher(ctx context.Context)

func (*Bus[T]) SubscribeToEvents

func (b *Bus[T]) SubscribeToEvents(handler func(context.Context, T)) func()

Jump to

Keyboard shortcuts

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