Documentation ¶
Index ¶
- type Find
- func (f *Find) AttachQuest(q *Quest)
- func (f *Find) FindFilterValues(filterFunc func(string, interface{}) bool)
- func (f *Find) FindKeys(rule string)
- func (f *Find) FindKeysContaining(rule string)
- func (f *Find) FindKeysFunc(fun func(string) bool)
- func (f *Find) FindValues(filterFunc func(interface{}) bool)
- type Quest
- func (q *Quest) Delete()
- func (q *Quest) FindFilterValues(filterFunc func(string, interface{}) bool) *Quest
- func (q *Quest) FindKeys(rule string) *Quest
- func (q *Quest) FindKeysContaining(rule string) *Quest
- func (q *Quest) FindKeysFunc(f func(string) bool) *Quest
- func (q *Quest) FindValues(filterFunc func(interface{}) bool) *Quest
- func (q *Quest) Reset()
- func (q *Quest) Results() *map[string]*interface{}
- func (q *Quest) ResultsToShardedmap(shards int) *Shardmap.ShardMap
- func (q *Quest) ToResults(in *map[string]*interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Find ¶
type Find struct { MaxWorkers int // contains filtered or unexported fields }
func (*Find) AttachQuest ¶
func (*Find) FindFilterValues ¶
func (*Find) FindKeysContaining ¶
func (*Find) FindKeysFunc ¶
func (*Find) FindValues ¶
type Quest ¶
type Quest struct {
// contains filtered or unexported fields
}
func NewQuest ¶
func NewQuest(i *Shardmap.ShardMap) *Quest
NewQuest initializes new shardmap quest! input: shardmap that you want to work on. Return: a Quest
func (*Quest) Delete ¶
func (q *Quest) Delete()
Delete deletes entries matched with find from the actual asyncmap resourec
func (*Quest) FindFilterValues ¶
func (*Quest) FindKeys ¶
FindKeys - similar what findvalues is, but accepts a regex string for finding keys.
func (*Quest) FindKeysContaining ¶
FindKeysContaining - exactly what findkeys is, but uses string.contains, slightly faster.
func (*Quest) FindKeysFunc ¶
FindKeysFunc - a custom function to do the string matching.
func (*Quest) FindValues ¶
FinValues - a filter function. Input: a function that accepts interface as argument, the interface is single entry stored in shardmaps shard.
func (*Quest) ResultsToShardedmap ¶
ResultsToShardedmap - returns a new shardedmap from the results
Click to show internal directories.
Click to hide internal directories.