tidwall

package
v0.0.0-...-04d6450 Latest Latest
Warning

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

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

Documentation

Overview

Package tidwall encapsulates the WAL solution implemented by tidwall/wal

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TWalLog

type TWalLog struct {
	Log  *wal.Log
	Lock sync.Mutex
}

func (*TWalLog) BWrite

func (twal *TWalLog) BWrite(datas [][]byte) error

func (*TWalLog) Close

func (twal *TWalLog) Close() error

func (*TWalLog) FirstIndex

func (twal *TWalLog) FirstIndex() (index uint64, err error)

func (*TWalLog) LastIndex

func (twal *TWalLog) LastIndex() (index uint64, err error)

func (*TWalLog) Read

func (twal *TWalLog) Read(index uint64) ([]byte, error)

func (*TWalLog) TruncateBack

func (twal *TWalLog) TruncateBack(id uint64) error

func (*TWalLog) TruncateFront

func (twal *TWalLog) TruncateFront(id uint64) error

func (*TWalLog) Write

func (twal *TWalLog) Write(data []byte) error

Jump to

Keyboard shortcuts

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