Documentation
¶
Index ¶
- func CreateSlot(ctx context.Context, conn *pgconn.PgConn, slotName string) error
- func DropSlot(ctx context.Context, conn *pgconn.PgConn, slotName string) error
- type HandleFunc
- type WalData
- type WalReceiver
- func (r *WalReceiver) Listen() error
- func (r *WalReceiver) OnError(fn func(*pgproto3.ErrorResponse))
- func (r *WalReceiver) OnExit(fn func())
- func (r *WalReceiver) OnMessage(fn HandleFunc)
- func (r *WalReceiver) OnPrimaryKeepalive(fn func(pglogrepl.PrimaryKeepaliveMessage))
- func (r *WalReceiver) OnStandbyStatusUpdate(fn func(pglogrepl.LSN))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandleFunc ¶
type WalData ¶
type WalReceiver ¶
type WalReceiver struct {
// contains filtered or unexported fields
}
func (*WalReceiver) Listen ¶
func (r *WalReceiver) Listen() error
func (*WalReceiver) OnError ¶
func (r *WalReceiver) OnError(fn func(*pgproto3.ErrorResponse))
func (*WalReceiver) OnExit ¶
func (r *WalReceiver) OnExit(fn func())
func (*WalReceiver) OnMessage ¶
func (r *WalReceiver) OnMessage(fn HandleFunc)
func (*WalReceiver) OnPrimaryKeepalive ¶
func (r *WalReceiver) OnPrimaryKeepalive(fn func(pglogrepl.PrimaryKeepaliveMessage))
func (*WalReceiver) OnStandbyStatusUpdate ¶
func (r *WalReceiver) OnStandbyStatusUpdate(fn func(pglogrepl.LSN))
Click to show internal directories.
Click to hide internal directories.