Documentation ¶
Index ¶
Constants ¶
View Source
const ( SubscriptionReadError = "SubscriptionReadError" UnsubscribeError = "UnsubscribeError" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus interface { Publish(channel string, data []byte) error Subscribe(channel string) (Subscription, error) ExitChan() <-chan error Close() }
Bus contains the connection to Redis and supplies the Publish and Subscribe methods to access the PubSub features. ExitChan will be closed when the subscription has ended. Call Close to end the subscription manually.
type Subscription ¶
type Subscription interface { DataChan() <-chan []byte ExitChan() <-chan struct{} Close() }
Subscription is an object that provides subscription data over the DataChan. ExitChan will be closed when the subscription has ended. Call Close to end the subscription manually.
Click to show internal directories.
Click to hide internal directories.