wal

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersion

func CompareVersion(v1, v2 string) int

func ParseVersion

func ParseVersion(file string) string

Types

type WAL

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

func Create

func Create(dir string) (*WAL, error)

func Open

func Open(file string) (*WAL, error)

func (*WAL) Close

func (w *WAL) Close() error

func (*WAL) Delete

func (w *WAL) Delete() error

func (*WAL) Read

func (w *WAL) Read() ([]*internalpb.Entry, error)

func (*WAL) Reset

func (w *WAL) Reset() (*WAL, error)

func (*WAL) Version

func (w *WAL) Version() string

func (*WAL) Write

func (w *WAL) Write(entries ...*internalpb.Entry) error

Jump to

Keyboard shortcuts

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