index

package
v0.0.0-...-1ec4297 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 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