Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetPostgresListenerFunc ¶
GetPostgresListenerFunc is a type of function that returns a new pq.Listener ready to start listening to pubsub channels. You must provide such a function to PostgresPubSub.
type PostgresPubSub ¶
type PostgresPubSub struct {
// contains filtered or unexported fields
}
PostgresPubSub is an implementation of pubsub using PostgreSQL notifications.
func NewPostgresPubSub ¶
func NewPostgresPubSub(getListener GetPostgresListenerFunc, chanPrefix string, log *log.Entry) (*PostgresPubSub, error)
NewPostgresPubSub creates a new PostgreSQL publish/subscribe engine.
type PostgresStream ¶
type PostgresStream struct {
// contains filtered or unexported fields
}
PostgresStream is a handler for a single PostgreSQL subscription.
func (*PostgresStream) Channel ¶
func (s *PostgresStream) Channel() <-chan Message
Channel returns a channel of streaming messages.
Click to show internal directories.
Click to hide internal directories.