Documentation
¶
Overview ¶
Package notifications relays PostgreSQL wakeup hints. Durable state remains in PostgreSQL; subscribers must subscribe before checking it and recheck after Wait.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("notification relay closed")
Functions ¶
This section is empty.
Types ¶
type Relay ¶
type Relay struct {
// contains filtered or unexported fields
}
Relay owns one direct session, independent of request pool capacity.
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
func (*Subscription) Close ¶
func (s *Subscription) Close()
Close releases this subscription; it is safe to call more than once.
Click to show internal directories.
Click to hide internal directories.