Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultMaxSubscribers = 500_000
)
Variables ¶
View Source
var ( ErrTooManySubscribers = errors.New("too many subscribers") ErrTopicNotFound = errors.New("topic not found") )
Functions ¶
This section is empty.
Types ¶
type EventBus ¶
type EventBus interface { AddTopic(name string, src <-chan coretypes.ResultEvent) error RemoveTopic(name string) Subscribe(name string) (<-chan coretypes.ResultEvent, UnsubscribeFunc, error) Topics() []string }
func NewEventBus ¶
type Option ¶ added in v0.3.0
type Option func(bus *memEventBus)
func WithMaxSubscribers ¶ added in v0.3.0
type UnsubscribeFunc ¶
type UnsubscribeFunc func()
Click to show internal directories.
Click to hide internal directories.