Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("event bus closed")
Functions ¶
This section is empty.
Types ¶
type MemoryBus ¶
type MemoryBus struct {
// contains filtered or unexported fields
}
func NewMemoryBus ¶
func NewMemoryBus() *MemoryBus
func (*MemoryBus) Subscribe ¶
func (b *MemoryBus) Subscribe(topic string, handler EventHandler) (Subscription, error)
func (*MemoryBus) SubscribePattern ¶
func (b *MemoryBus) SubscribePattern(pattern string, handler EventHandler) (Subscription, error)
type Subscription ¶
type Subscription interface {
Unsubscribe() error
}
Click to show internal directories.
Click to hide internal directories.