Documentation ¶
Overview ¶
Package queue implements a Pub/Sub channel in tsuru. It abstracts which server is being used and handles connection pooling and data transmiting
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PubSubQ ¶
type PubSubQ interface { // Publishes a message using the underlaying queue server. Pub(msg []byte) error // Returns a channel that will yield every message published to this // queue. Sub() (chan []byte, error) // Unsubscribe the queue, this should make sure the channel returned // by Sub() is closed. UnSub() error }
PubSubQ represents an implementation that allows Publishing and Subscribing messages.
Click to show internal directories.
Click to hide internal directories.