memsearch

package
v1.0.0-...-e80de26 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2015 License: MIT Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docs

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

func (Docs) Get

func (d Docs) Get(i int) (val interface{})

func (Docs) Len

func (d Docs) Len() int

func (Docs) Less

func (d Docs) Less(i, j int) bool

func (Docs) Swap

func (d Docs) Swap(i, j int)

type Filter

type Filter struct {
	Field string
	Value interface{}
	Regex string
}

type MemFilter

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

func (*MemFilter) AddExact

func (mf *MemFilter) AddExact(field string,
	value interface{}) search.FilterQuery

func (*MemFilter) AddRegex

func (mf *MemFilter) AddRegex(field string,
	value string) search.FilterQuery

type MemQuery

type MemQuery struct {
	Docs []x.Doc
	// contains filtered or unexported fields
}

func (*MemQuery) Count

func (mq *MemQuery) Count() (rcount int64, rerr error)

func (*MemQuery) From

func (mq *MemQuery) From(num int) search.Query

func (*MemQuery) Limit

func (mq *MemQuery) Limit(num int) search.Query

func (*MemQuery) NewAndFilter

func (mq *MemQuery) NewAndFilter() search.FilterQuery

func (*MemQuery) NewOrFilter

func (mq *MemQuery) NewOrFilter() search.FilterQuery

func (*MemQuery) Order

func (mq *MemQuery) Order(field string) search.Query

func (*MemQuery) Run

func (mq *MemQuery) Run() (docs []x.Doc, rerr error)

type MemSearch

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

func (*MemSearch) All

func (ms *MemSearch) All() []x.Doc

func (*MemSearch) Init

func (ms *MemSearch) Init(args ...string)

func (*MemSearch) NewQuery

func (ms *MemSearch) NewQuery(kind string) search.Query

func (*MemSearch) Update

func (ms *MemSearch) Update(doc x.Doc) error

Jump to

Keyboard shortcuts

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