notification_connection

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2019 License: Apache-2.0, BSD-3-Clause, MIT Imports: 1 Imported by: 0

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

	// NotificationChannel returns channel for receiving notifications
	NotificationChannel() <-chan *pq.Notification
}

NotificationConnection is a connection for listening for notifications

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL