Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsubscribe = fmt.Errorf("unable to find subscription to unsubscribe")
Functions ¶
Types ¶
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
func (*Bus) Subscribe ¶
func (bus *Bus) Subscribe(eTypes ...EventType) *Subscription
func (*Bus) Unsubscribe ¶
func (bus *Bus) Unsubscribe(sub *Subscription) error
type Subscriber ¶
type Subscriber interface {
Subscribe(...EventType) *Subscription
}
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
func (*Subscription) Events ¶
func (s *Subscription) Events() <-chan Event
func (*Subscription) Unsubscribe ¶
func (s *Subscription) Unsubscribe() error
type SubscriptionId ¶
type SubscriptionId int64
type Unsubscribable ¶
type Unsubscribable interface {
Unsubscribe() error
}
Click to show internal directories.
Click to hide internal directories.