Documentation ¶
Overview ¶
Package peripheral provides a secondary index layer for badger key-value store - see examples.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoIndexNameProvided = fmt.Errorf("no index name provided")
)
error
Functions ¶
Types ¶
type Res ¶
Res .
func QueryIndex ¶
func QueryIndex(params Q, txn *layer.Txn, forIndexedKeys ...bool) (reslist []Res, rescount int, reserr error)
QueryIndex .
Example ¶
Output: 2 CMNT::001 CMNT::001 nosql CMNT::002 CMNT::002 nosql 1 CMNT::002 CMNT::002 golang 2 CMNT::001 CMNT::001 Frodo Baggins CMNT::002 CMNT::002 Frodo Baggins
Example (With) ¶
Output: 2 CMNT::001 CMNT::001 nosql CMNT::002 CMNT::002 nosql 1 CMNT::002 CMNT::002 golang 2 CMNT::001 CMNT::001 Frodo Baggins CMNT::002 CMNT::002 Frodo Baggins
Click to show internal directories.
Click to hide internal directories.