index

package
v2.0.27+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2017 License: Apache-2.0 Imports: 5 Imported by: 117

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("Record is not found")
)

Functions

This section is empty.

Types

type FileIndex

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

func NewFileIndex

func NewFileIndex(path string, fs boshsys.FileSystem) FileIndex

func (FileIndex) Find

func (ri FileIndex) Find(key interface{}, value interface{}) error

func (FileIndex) Save

func (ri FileIndex) Save(key interface{}, value interface{}) error

type Index

type Index interface {
	Find(interface{}, interface{}) error
	Save(interface{}, interface{}) error
}

func NewInMemoryIndex

func NewInMemoryIndex() Index

Jump to

Keyboard shortcuts

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