Versions in this module Expand all Collapse all v1 v1.0.0 Mar 27, 2026 Changes in this version + var ErrNotFoundEntity = errors.New("not found entity") + var Nothing = struct{} + type Constructable interface + Construct func() error + type Destroyable interface + Destroy func() error + type Group struct + func NewGroup[K comparable, V any]() *Group[K, V] + func (g *Group[K, V]) Add(id K, e V) (err error) + func (g *Group[K, V]) CallWithLock(f func(d map[K]V) (e V, err error)) (V, error) + func (g *Group[K, V]) Clear() + func (g *Group[K, V]) Get(id K) (e V, err error) + func (g *Group[K, V]) GetKeys() []K + func (g *Group[K, V]) GetMap() map[K]V + func (g *Group[K, V]) GetValues() []V + func (g *Group[K, V]) Iterator() chan V + func (g *Group[K, V]) Remove(id K) (err error) + func (g *Group[K, V]) Search(key any, result chan V, f SearchFunction) + func (g *Group[K, V]) SearchOne(key any, f SearchFunction) (d V) + func (g *Group[K, V]) Size() int + func (g *Group[K, V]) Tick() + type Registry struct + func NewRegistry[G comparable, I comparable, V any]() *Registry[G, I, V] + func (r *Registry[G, I, V]) Add(key G, id I, e V) error + func (r *Registry[G, I, V]) AddIndex(id uint64, key I) + func (r *Registry[G, I, V]) AsyncIterator(keys ...G) chan V + func (r *Registry[G, I, V]) AsyncTick(keys ...G) + func (r *Registry[G, I, V]) ClearGroup(key G) + func (r *Registry[G, I, V]) DeleteGroup(key G) + func (r *Registry[G, I, V]) Get(key G, id I) (e V, err error) + func (r *Registry[G, I, V]) GetGroup(key G) (group *Group[I, V]) + func (r *Registry[G, I, V]) GetGroups(keys ...G) (groups []*Group[I, V]) + func (r *Registry[G, I, V]) GetIndex(id uint64) I + func (r *Registry[G, I, V]) GetKeys() []G + func (r *Registry[G, I, V]) GetValues(key G) []V + func (r *Registry[G, I, V]) Iterator(keys ...G) chan V + func (r *Registry[G, I, V]) LatestID() uint64 + func (r *Registry[G, I, V]) NextID() uint64 + func (r *Registry[G, I, V]) RemIndex(id uint64) + func (r *Registry[G, I, V]) Remove(key G, id I) error + func (r *Registry[G, I, V]) RemoveIDEverywhere(id I) error + func (r *Registry[G, I, V]) SearchInGroup(key G, f SearchFunction) chan V + func (r *Registry[G, I, V]) SearchOne(key G, f SearchFunction) V + func (r *Registry[G, I, V]) SetLatestID(id uint64) + func (r *Registry[G, I, V]) Size() int + func (r *Registry[G, I, V]) TickGroup(key G) + func (r *Registry[G, I, V]) TickGroups(keys ...G) + type SearchFunction func(key interface{}, id interface{}, data interface{}) bool + type Ticker interface + Tick func()