wal

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Redo *redo.Log
	// contains filtered or unexported fields
}

func Open

func Open(indexName string) (*Log, error)

func (*Log) Close

func (l *Log) Close() error

func (*Log) FirstIndex

func (l *Log) FirstIndex() (uint64, error)

func (*Log) LastIndex

func (l *Log) LastIndex() (uint64, error)

func (*Log) Len

func (l *Log) Len() (uint64, error)

func (*Log) Name

func (l *Log) Name() string

func (*Log) Read

func (l *Log) Read(id uint64) ([]byte, error)

func (*Log) Sync

func (l *Log) Sync() error

func (*Log) TruncateFront

func (l *Log) TruncateFront(id uint64) error

func (*Log) Write

func (l *Log) Write(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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