sequential

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOversize = fmt.Errorf("payload size exceeds the limit of %d", dataSize)
	ErrClosed   = stderr.New("sequential has closed")
	ErrNotfound = stderr.New("offset not found")
)

Functions

func Info

func Info(baseDir string) error

Info show offset and available capacity of each file(.mox) in this directory

Types

type Sequential

type Sequential interface {
	Close()
	Write(raw []byte) (offset uint64, err error)
	Get(offset uint64) ([]byte, error)
	// contains filtered or unexported methods
}

Sequential write files sequentially

func New

func New(baseDir string, logger *zap.Logger) Sequential

New write files sequentially

Jump to

Keyboard shortcuts

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