offset_storage

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKey

func BuildKey(pipelineId int64, stream string) string

Types

type OffsetStorage

type OffsetStorage interface {
	SetOffsetForPipeline(key string, offset int64) error
	GetOffsetByPipelineStream(key string) (int64, error)
}

OffsetStorage is used to store checkpoints/offsets for source connectors which use incremental sync by primary keys

func NewOffsetStorage

func NewOffsetStorage(storageURI string) OffsetStorage

type Storage

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

func (*Storage) GetOffsetByPipelineStream

func (o *Storage) GetOffsetByPipelineStream(key string) (int64, error)

func (*Storage) SetOffsetForPipeline

func (o *Storage) SetOffsetForPipeline(key string, offset int64) error

type StorageInMem

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

func NewStorageInMem

func NewStorageInMem() *StorageInMem

func (*StorageInMem) GetOffsetByPipelineStream

func (o *StorageInMem) GetOffsetByPipelineStream(key string) (int64, error)

func (*StorageInMem) SetOffsetForPipeline

func (o *StorageInMem) SetOffsetForPipeline(key string, offset int64) error

Jump to

Keyboard shortcuts

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