Documentation ¶
Index ¶
- Variables
- type CommandTag
- type Conn
- type Error
- type IdentifySystemResult
- type Pool
- type Querier
- type ReplicationConfig
- type ReplicationConn
- func (c *ReplicationConn) Close(ctx context.Context) error
- func (c *ReplicationConn) IdentifySystem(ctx context.Context) (IdentifySystemResult, error)
- func (c *ReplicationConn) ReceiveMessage(ctx context.Context) (*ReplicationMessage, error)
- func (c *ReplicationConn) SendStandbyStatusUpdate(ctx context.Context, lsn uint64) error
- func (c *ReplicationConn) StartReplication(ctx context.Context, cfg ReplicationConfig) error
- type ReplicationMessage
- type Row
- type Rows
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnTimeout = errors.New("connection timeout")
View Source
var ErrUnsupportedCopyDataMessage = errors.New("unsupported copy data message")
Functions ¶
This section is empty.
Types ¶
type CommandTag ¶
type CommandTag struct {
pgconn.CommandTag
}
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
type IdentifySystemResult ¶
type IdentifySystemResult pglogrepl.IdentifySystemResult
type ReplicationConfig ¶
type ReplicationConn ¶
type ReplicationConn struct {
// contains filtered or unexported fields
}
func NewReplicationConn ¶
func NewReplicationConn(ctx context.Context, url string) (*ReplicationConn, error)
func (*ReplicationConn) IdentifySystem ¶
func (c *ReplicationConn) IdentifySystem(ctx context.Context) (IdentifySystemResult, error)
func (*ReplicationConn) ReceiveMessage ¶
func (c *ReplicationConn) ReceiveMessage(ctx context.Context) (*ReplicationMessage, error)
func (*ReplicationConn) SendStandbyStatusUpdate ¶
func (c *ReplicationConn) SendStandbyStatusUpdate(ctx context.Context, lsn uint64) error
func (*ReplicationConn) StartReplication ¶
func (c *ReplicationConn) StartReplication(ctx context.Context, cfg ReplicationConfig) error
type ReplicationMessage ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.