Documentation
¶
Index ¶
- type HandlerRetrier
- func (h *HandlerRetrier) Close() error
- func (h *HandlerRetrier) GetCurrentLSN(ctx context.Context) (replication.LSN, error)
- func (h *HandlerRetrier) GetLSNParser() replication.LSNParser
- func (h *HandlerRetrier) GetReplicationLag(ctx context.Context) (int64, error)
- func (h *HandlerRetrier) ReceiveMessage(ctx context.Context) (*replication.Message, error)
- func (h *HandlerRetrier) ResetConnection(ctx context.Context) error
- func (h *HandlerRetrier) StartReplication(ctx context.Context) error
- func (h *HandlerRetrier) StartReplicationFromLSN(ctx context.Context, lsn replication.LSN) error
- func (h *HandlerRetrier) SyncLSN(ctx context.Context, lsn replication.LSN) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerRetrier ¶
type HandlerRetrier struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(h replication.Handler, backoffConfig backoff.Config, opts ...Option) *HandlerRetrier
func (*HandlerRetrier) Close ¶
func (h *HandlerRetrier) Close() error
func (*HandlerRetrier) GetCurrentLSN ¶
func (h *HandlerRetrier) GetCurrentLSN(ctx context.Context) (replication.LSN, error)
func (*HandlerRetrier) GetLSNParser ¶
func (h *HandlerRetrier) GetLSNParser() replication.LSNParser
func (*HandlerRetrier) GetReplicationLag ¶
func (h *HandlerRetrier) GetReplicationLag(ctx context.Context) (int64, error)
func (*HandlerRetrier) ReceiveMessage ¶
func (h *HandlerRetrier) ReceiveMessage(ctx context.Context) (*replication.Message, error)
func (*HandlerRetrier) ResetConnection ¶
func (h *HandlerRetrier) ResetConnection(ctx context.Context) error
func (*HandlerRetrier) StartReplication ¶
func (h *HandlerRetrier) StartReplication(ctx context.Context) error
func (*HandlerRetrier) StartReplicationFromLSN ¶
func (h *HandlerRetrier) StartReplicationFromLSN(ctx context.Context, lsn replication.LSN) error
func (*HandlerRetrier) SyncLSN ¶
func (h *HandlerRetrier) SyncLSN(ctx context.Context, lsn replication.LSN) error
Click to show internal directories.
Click to hide internal directories.