wal

package
v1.2.3-hotfix-20241016 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GroupC uint32 = iota + 10
	GroupPrepare
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	GetCheckpointed() uint64
	RangeCheckpoint(start, end uint64) (e LogEntry, err error)
	AppendEntry(uint32, LogEntry) (uint64, error)
	LoadEntry(groupID uint32, lsn uint64) (LogEntry, error)
	GetCurrSeqNum() uint64
	GetPenddingCnt() uint64
	Replay(handle store.ApplyHandle) error
	Start()
	Close() error
}

func NewDriverWithBatchStore added in v0.6.0

func NewDriverWithBatchStore(ctx context.Context, dir, name string, cfg *DriverConfig) Driver

func NewDriverWithLogservice added in v0.6.0

func NewDriverWithLogservice(ctx context.Context, factory logservicedriver.LogServiceClientFactory) Driver

func NewDriverWithStore

func NewDriverWithStore(ctx context.Context, impl store.Store, own bool, ckpDuration time.Duration) Driver

type DriverConfig added in v0.6.0

type DriverConfig struct {
	BatchStoreConfig   *batchstoredriver.StoreCfg
	CheckpointDuration time.Duration
}

type LogEntry

type LogEntry entry.Entry

type ReplayObserver

type ReplayObserver interface {
	OnTimeStamp(ts types.TS)
}

Jump to

Keyboard shortcuts

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