Documentation
¶
Overview ¶
Package worknotify turns PostgreSQL commit notifications into process-local, coalesced wakeup hints. Durable tables remain the only work authority.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub fans commit hints out to interested workers without carrying authority.
type PostgresListener ¶
type PostgresListener struct {
// contains filtered or unexported fields
}
PostgresListener receives transaction-commit hints on one dedicated connection.
func NewPostgresListener ¶
func NewPostgresListener( ctx context.Context, databaseURL string, hub *Hub, ) (*PostgresListener, error)
NewPostgresListener establishes LISTEN before returning so no later startup operation can race worker subscription setup.
Click to show internal directories.
Click to hide internal directories.