indexing

package
v1.2.10-rc.5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

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

Bucket is a collection of 256 files.

func OpenBucket

func OpenBucket(prefix string, valueSize int, create bool) (*Bucket, error)

func (*Bucket) Close

func (b *Bucket) Close() error

func (*Bucket) Read

func (b *Bucket) Read(i byte) ([]Entry, error)

func (*Bucket) Write

func (b *Bucket) Write(hash [32]byte, value []byte) error

type Entry

type Entry struct {
	Hash  [32]byte
	Value []byte
}

Jump to

Keyboard shortcuts

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