index

package
v0.0.0-...-b9173d1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotExists = errors.New("location does not exist")
)

Functions

This section is empty.

Types

type BboltIndex

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

func NewBboltIndex

func NewBboltIndex(file, bucket string) *BboltIndex

func (*BboltIndex) Close

func (b *BboltIndex) Close() error

func (*BboltIndex) GetLocation

func (b *BboltIndex) GetLocation(block uint64) (location uint64, err error)

func (*BboltIndex) Open

func (b *BboltIndex) Open() (err error)

func (*BboltIndex) SetLocation

func (b *BboltIndex) SetLocation(block uint64, location uint64) error

Jump to

Keyboard shortcuts

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