Documentation ¶
Index ¶
- type Autocompleter
- type Entry
- type OrderedEntry
- type QueryResult
- type ShardedTagIndex
- func (sti ShardedTagIndex[_]) Commit() error
- func (sti ShardedTagIndex[T]) Get(id ...string) ([]T, error)
- func (sti ShardedTagIndex[T]) Put(e ...T)
- func (sti ShardedTagIndex[T]) Query(dst *QueryResult[T], tags []string, limit int) error
- func (sti ShardedTagIndex[_]) Tags(prefix string) ([]TagInfo, error)
- func (sti ShardedTagIndex[T]) WithSeed(seed int64) ShardedTagIndex[T]
- type TagIndex
- type TagInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Autocompleter ¶
type Autocompleter[T Entry] struct { // contains filtered or unexported fields }
func NewAutocompleter ¶
func NewAutocompleter[T Entry](idx TagIndex[T]) *Autocompleter[T]
func (Autocompleter[_]) Autocomplete ¶
func (a Autocompleter[_]) Autocomplete(tags []string, limit int) ([][]TagInfo, error)
type OrderedEntry ¶
type QueryResult ¶
func (*QueryResult[_]) Reset ¶
func (qr *QueryResult[_]) Reset()
type ShardedTagIndex ¶
type ShardedTagIndex[T Entry] struct { // contains filtered or unexported fields }
func NewShardedTagIndex ¶
func NewShardedTagIndex[T Entry]( numShards int32, shardInitFn func(n int32) TagIndex[T], ) ShardedTagIndex[T]
func (ShardedTagIndex[_]) Commit ¶
func (sti ShardedTagIndex[_]) Commit() error
Commit does nothing at the moment, sub-index commit is called lazily when querying
func (ShardedTagIndex[T]) Get ¶
func (sti ShardedTagIndex[T]) Get(id ...string) ([]T, error)
func (ShardedTagIndex[T]) Put ¶
func (sti ShardedTagIndex[T]) Put(e ...T)
func (ShardedTagIndex[T]) Query ¶
func (sti ShardedTagIndex[T]) Query(dst *QueryResult[T], tags []string, limit int) error
func (ShardedTagIndex[_]) Tags ¶
func (sti ShardedTagIndex[_]) Tags(prefix string) ([]TagInfo, error)
func (ShardedTagIndex[T]) WithSeed ¶
func (sti ShardedTagIndex[T]) WithSeed(seed int64) ShardedTagIndex[T]
Click to show internal directories.
Click to hide internal directories.