Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) RegisterNotification ¶
func (p *Database) RegisterNotification(ctx context.Context, n database.NotificationName, f database.NotificationCallback, payload any) error
RegisterNotification registers a call back for database notifications.
Note that this currently launches a connection+go routine to listen for notifications. It may be an idea to switch this code to only launch a single go routine for all notifications.
func (*Database) UnregisterNotification ¶
func (p *Database) UnregisterNotification(n database.NotificationName) error
Click to show internal directories.
Click to hide internal directories.