redo

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const ValueFixedLength = 64

Variables

View Source
var (
	ErrNotFound      = errors.New("not found")
	ErrValueTooLarge = errors.New("value too large")
)

Functions

This section is empty.

Types

type Log

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

func Open

func Open(name string, opt *Options) (*Log, error)

func (*Log) Close

func (l *Log) Close() error

func (*Log) Read

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

func (*Log) Write

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

type Options

type Options struct {
	NoSync bool
	NoCopy bool
}

func DefaultOptions

func DefaultOptions() *Options

Jump to

Keyboard shortcuts

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