driver

package
v0.0.0-debug-20260702 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyHandle

type ApplyHandle = func(*entry.Entry) (replayEntryState ReplayEntryState)

type Driver

type Driver interface {
	Append(*entry.Entry) error
	Truncate(lsn uint64) error
	GetTruncated() (dsn uint64, err error)
	Close() error
	Replay(
		ctx context.Context,
		h ApplyHandle,
		modeGetter func() ReplayMode,
		opt *ReplayOption,
	) error
	GetDSN() uint64
}

type DriverMode

type DriverMode int32
const (
	DriverMode_Invalid DriverMode = iota
	DriverMode_Writable
	DriverMode_Readonly
)

type ReplayEntryState

type ReplayEntryState int8
const (
	RE_Truncate ReplayEntryState = iota
	RE_Internal
	RE_Nomal
	RE_Invalid
)

type ReplayMode

type ReplayMode int32
const (
	ReplayMode_Invalid ReplayMode = iota
	ReplayMode_ReplayForWrite
	ReplayMode_ReplayForRead
	ReplayMode_ReplayForever
)

type ReplayOption

type ReplayOption struct {
	PollTruncateInterval time.Duration // Logservice only
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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