Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrSubscriptionCanceled = errors.Error("subscription canceled")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PubSub ¶
type PubSub interface { Publisher Subscriber }
type Publisher ¶
type Publisher interface {
Publish(interface{})
}
Publisher deals with the publishing part of our PubSub
type QueueSubscription ¶ added in v0.8.0
type QueueSubscription struct { Queue *queue.Queue // contains filtered or unexported fields }
func (*QueueSubscription) Cancel ¶ added in v0.8.0
func (ps *QueueSubscription) Cancel()
func (*QueueSubscription) Channel ¶ added in v0.15.0
func (ps *QueueSubscription) Channel() <-chan interface{}
func (*QueueSubscription) Next ¶ added in v0.8.0
func (ps *QueueSubscription) Next() (interface{}, error)
type Subscriber ¶
type Subscriber interface {
Subscribe(...Filter) Subscription
}
Subscriber deals with the subscribing part of our PubSub
type Subscription ¶
type Subscription interface { Channel() <-chan interface{} Next() (interface{}, error) Cancel() }
Subscription is returned for every subscription
Click to show internal directories.
Click to hide internal directories.