tapedb

package module
v0.0.0-...-5c7516f Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

tapedb

Tape kind database

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotSafelyClosedErr = errors.New("tapedb is not safely closed")
)

Functions

This section is empty.

Types

type DB

type DB interface {
	Tape() (v Tape)
	Close() (err error)
}

type Option

type Option struct {
}

type Player

type Player interface {
	Key() (key []byte)
	Play(pos int64, size int64) (values [][]byte, err error)
	Save(pos int64, comment []byte) (err error)
	LatestSavedPos() (pos int64, comment []byte, err error)
}

type Recorder

type Recorder interface {
	Key() (key []byte)
	Record(values ...[]byte) (err error)
	Player() (p Player, err error)
}

type Tape

type Tape interface {
	Name() (name []byte)
	Recorder(key []byte) (r Recorder)
	Player(key []byte) (p Player)
}

Directories

Path Synopsis
internal
lru

Jump to

Keyboard shortcuts

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