Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationConnection ¶
type NotificationConnection interface { // Listen starts listening a channel Listen(channel string) error // Unlisten stops listening a channel Unlisten(channel string) error // Close closes the connection Close() error // Ping the remote server to make sure it's alive. Non-nil return value means // that there is no active connection. Ping() error // NotificationChannel returns channel for receiving notifications NotificationChannel() <-chan *pq.Notification }
NotificationConnection is a connection for listening for notifications
Click to show internal directories.
Click to hide internal directories.