tbotd/vendor/src/github.com/asdine/storm/index/indexes.go

13 lines
343 B
Go
Raw Normal View History

2016-05-29 18:43:51 +00:00
package index
// Index interface
type Index interface {
Add(value []byte, targetID []byte) error
Remove(value []byte) error
RemoveID(id []byte) error
Get(value []byte) []byte
All(value []byte, opts *Options) ([][]byte, error)
AllRecords(opts *Options) ([][]byte, error)
Range(min []byte, max []byte, opts *Options) ([][]byte, error)
}