rawdb

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxFileSize = 256 * 1024 * 1024 // 256MB file max; will never be bigger.
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RawDB

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

func New

func New(home string, maxSize int64) (*RawDB, error)

func (*RawDB) Close

func (r *RawDB) Close() error

func (*RawDB) Get

func (r *RawDB) Get(key []byte) ([]byte, error)

func (*RawDB) Has

func (r *RawDB) Has(key []byte) (bool, error)

func (*RawDB) Insert

func (r *RawDB) Insert(key, value []byte) error

func (*RawDB) Open

func (r *RawDB) Open() error

Jump to

Keyboard shortcuts

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