Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSnapshotInvalidated = fmt.Errorf("snapshot invalidated by coordinator restart")
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
type Chunk struct {
ClaimedAt *time.Time
HeartbeatAt *time.Time
CompletedAt *time.Time
RangeEnd *int64
RangeStart *int64
RangeEndText *string
RangeStartText *string
Status ChunkStatus
TableName string
ClaimedBy string
TableSchema string
SlotName string
PKColumn string
ID int64
ChunkIndex int
ChunkStart int64
ChunkSize int64
UseCtid bool
}
type ChunkStatus ¶
type ChunkStatus string
const ( ChunkStatusPending ChunkStatus = "pending" ChunkStatusInProgress ChunkStatus = "in_progress" ChunkStatusCompleted ChunkStatus = "completed" )
type ConnectionPool ¶
type ConnectionPool struct {
// contains filtered or unexported fields
}
func NewConnectionPool ¶
func (*ConnectionPool) Close ¶
func (p *ConnectionPool) Close(ctx context.Context)
func (*ConnectionPool) Get ¶
func (p *ConnectionPool) Get(ctx context.Context) (pg.Connection, error)
func (*ConnectionPool) Put ¶
func (p *ConnectionPool) Put(conn pg.Connection)
type DecoderCache ¶
type DecoderCache struct {
// contains filtered or unexported fields
}
func NewDecoderCache ¶
func NewDecoderCache() *DecoderCache
func (*DecoderCache) Get ¶
func (c *DecoderCache) Get(oid uint32) *TypeDecoder
func (*DecoderCache) Size ¶
func (c *DecoderCache) Size() int
type Snapshotter ¶
type Snapshotter struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, snapshotConfig config.SnapshotConfig, tables publication.Tables, dsn string) (*Snapshotter, error)
func (*Snapshotter) Close ¶
func (s *Snapshotter) Close(ctx context.Context)
type TypeDecoder ¶
type TypeDecoder struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.