notification_connection

package
v0.19.6 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 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

	// 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

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