logtracker

package
v0.0.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OracleStateKey = "oracle_state"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbeddedLogPositionRow

type EmbeddedLogPositionRow struct {
	SCN       uint64    `db:"SCN"`
	RSID      *string   `db:"RS_ID"`
	SSN       *uint64   `db:"SSN"`
	Type      string    `db:"TYPE"`
	Timestamp time.Time `db:"TS"`
}

type EmbeddedLogTracker

type EmbeddedLogTracker struct {
	// contains filtered or unexported fields
}

func NewEmbeddedLogTracker

func NewEmbeddedLogTracker(sqlxDB *sqlx.DB, config *oracle.OracleSource, transferID string) (*EmbeddedLogTracker, error)

func (*EmbeddedLogTracker) ClearPosition

func (tracker *EmbeddedLogTracker) ClearPosition() error

func (*EmbeddedLogTracker) Init

func (tracker *EmbeddedLogTracker) Init() error

func (*EmbeddedLogTracker) ReadPosition

func (tracker *EmbeddedLogTracker) ReadPosition() (*common.LogPosition, error)

func (*EmbeddedLogTracker) TransferID

func (tracker *EmbeddedLogTracker) TransferID() string

func (*EmbeddedLogTracker) WritePosition

func (tracker *EmbeddedLogTracker) WritePosition(position *common.LogPosition) error

type InMemoryLogTracker

type InMemoryLogTracker struct {
	// contains filtered or unexported fields
}

func NewInMemoryLogTracker

func NewInMemoryLogTracker(transferID string) (*InMemoryLogTracker, error)

func (*InMemoryLogTracker) ClearPosition

func (tracker *InMemoryLogTracker) ClearPosition() error

func (*InMemoryLogTracker) Init

func (tracker *InMemoryLogTracker) Init() error

func (*InMemoryLogTracker) ReadPosition

func (tracker *InMemoryLogTracker) ReadPosition() (*common.LogPosition, error)

func (*InMemoryLogTracker) TransferID

func (tracker *InMemoryLogTracker) TransferID() string

func (*InMemoryLogTracker) WritePosition

func (tracker *InMemoryLogTracker) WritePosition(position *common.LogPosition) error

type InternalLogTracker

type InternalLogTracker struct {
	// contains filtered or unexported fields
}

func NewInternalLogTracker

func NewInternalLogTracker(controlPlaneClient coordinator.Coordinator, transferID string) (*InternalLogTracker, error)

func (*InternalLogTracker) ClearPosition

func (tracker *InternalLogTracker) ClearPosition() error

func (*InternalLogTracker) Init

func (tracker *InternalLogTracker) Init() error

func (*InternalLogTracker) ReadPosition

func (tracker *InternalLogTracker) ReadPosition() (*common.LogPosition, error)

func (*InternalLogTracker) TransferID

func (tracker *InternalLogTracker) TransferID() string

func (*InternalLogTracker) WritePosition

func (tracker *InternalLogTracker) WritePosition(position *common.LogPosition) error

type LogTracker

type LogTracker interface {
	TransferID() string
	Init() error
	ClearPosition() error
	ReadPosition() (*common.LogPosition, error)
	WritePosition(position *common.LogPosition) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL