index

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrProviderNotSupported = errors.New("Unsupported provider given")

ErrProviderNotSupported index provider given is not supported

Functions

This section is empty.

Types

type Index

type Index interface {
	IndexNote(n *note.Note) error
	IndexNotes(notes note.Notes) error
	SearchNote(query string, limit, offset int) ([]int64, uint64, error)
	SearchNotePhrase(query string, bk *note.Book, sort string, limit, offset int) ([]int64, uint64, error)
	DeleteNote(n *note.Note) error
	DeleteBook(bk *note.Book) error
}

Index interface for the index providers

func NewIndex

func NewIndex(provider string, options ...string) (Index, error)

NewIndex returns a new indexer for the given provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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