Documentation ¶
Index ¶
Constants ¶
View Source
const StartBeginning = -1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBListen ¶
type DBListen struct { OnConnected func() // contains filtered or unexported fields }
DBListen is used to listen for DB updates. Implements pubsub.Listener
type DBNotifier ¶
type DBNotifier struct {
// contains filtered or unexported fields
}
DBNotifier is used to send pg_notify notifications. Implements pubsub.Notifier
func NewDBNotifier ¶
func NewDBNotifier(db *sqlx.DB) *DBNotifier
type PayloadTable ¶
type PayloadTable struct {
// contains filtered or unexported fields
}
func NewPayloadTableFromDB ¶
func NewPayloadTableFromDB(db *sqlx.DB) *PayloadTable
type SyncDBNotifListener ¶
type SyncDBNotifListener struct { *DBNotifier *DBListen // contains filtered or unexported fields }
func (*SyncDBNotifListener) Listen ¶
func (s *SyncDBNotifListener) Listen(chanName string, pos int64, fn func(p pubsub.PartialWrapper)) error
Click to show internal directories.
Click to hide internal directories.