index

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIndexCorruption

func IsIndexCorruption(err error) bool

IsIndexCorruption returns a boolean indicating whether the error is known to report a corruption data issue

Types

type Indexer

type Indexer interface {
	Load(path string, maxkeySize uint32) (art.Tree, bool, error)
	Save(t art.Tree, path string) error
}

Indexer is an interface for loading and saving the index (an Adaptive Radix Tree)

func NewIndexer

func NewIndexer() Indexer

NewIndexer returns an instance of the default `Indexer` implemtnation which perists the index (an Adaptive Radix Tree) as a binary blob on file

func NewTTLIndexer

func NewTTLIndexer() Indexer

Jump to

Keyboard shortcuts

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