Versions in this module Expand all Collapse all v0 v0.5.0 Jun 17, 2018 v0.4.0 Jun 17, 2018 v0.3.1 Jun 17, 2018 Changes in this version type IndexEntry + Index []byte v0.3.0 Jun 17, 2018 Changes in this version + var ErrNoIndexNameProvided = fmt.Errorf("no index name provided") + func Emit(txn *layer.Txn, ix *Index, key, val []byte) (reserr error) + type Index struct + func NewIndex(name string, indexFn IndexFn) (res *Index) + type IndexEntry struct + Key []byte + Val []byte + type IndexFn func(key, val []byte) ([]IndexEntry, error) + type Q struct + Count bool + End []byte + Index string + Limit int + Prefix []byte + Skip int + Start []byte + type Res struct + Index []byte + Key []byte + Val []byte + func QueryIndex(params Q, txn *layer.Txn, forIndexedKeys ...bool) (reslist []Res, rescount int, reserr error)