Versions in this module Expand all Collapse all v2 v2.0.0 May 8, 2023 Changes in this version + type CommonIndex struct + func NewCommonIndex() *CommonIndex[T] + func (i *CommonIndex[T]) Clear() + func (i *CommonIndex[T]) Delete(id int) + func (i *CommonIndex[T]) Get(key any) ([]int, error) + func (i *CommonIndex[T]) Set(key any, id int) error + type Indexer struct + Indexes map[string]core.Index + func NewIndexer() *Indexer + func (i *Indexer) Clear() + func (i *Indexer) Resolve(indices Indices) []int + func (i *Indexer) Set(id int, indices Indices) error + func (i *Indexer) Unset(id int) + func (i *Indexer) WithIndex(name string, index core.Index) *Indexer + type Indices map[string]interface + type Set []int + func (s Set) Contains(id int) bool + func (s Set) Intersect(other Set) Set + func (s Set) Len() int + func (s Set) Less(i, j int) bool + func (s Set) Sort() Set + func (s Set) Swap(i, j int) + func (s Set) Unique() Set + type UniqueIndex struct + func NewUniqueIndex() *UniqueIndex[T] + func (i *UniqueIndex[T]) Clear() + func (i *UniqueIndex[T]) Delete(id int) + func (i *UniqueIndex[T]) Get(key any) ([]int, error) + func (i *UniqueIndex[T]) Set(key any, id int) error