Documentation
¶
Index ¶
- Constants
- type Driver
- func NewDriverWithBatchStore(ctx context.Context, dir, name string, cfg *DriverConfig) Driver
- func NewDriverWithLogservice(ctx context.Context, factory logservicedriver.LogServiceClientFactory) Driver
- func NewDriverWithStore(ctx context.Context, impl store.Store, own bool, ckpDuration time.Duration) Driver
- type DriverConfig
- type LogEntry
- type ReplayObserver
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
type DriverConfig ¶ added in v0.6.0
type DriverConfig struct {
BatchStoreConfig *batchstoredriver.StoreCfg
CheckpointDuration time.Duration
}
type ReplayObserver ¶
Click to show internal directories.
Click to hide internal directories.