Versions in this module Expand all Collapse all v0 v0.1.0 Aug 26, 2026 Changes in this version + type Directory struct + KeyType KeyType + Name string + Resolver ResolverFunc + Value any + func NewConstantDirectory(name string, keyType KeyType, value any) *Directory + func NewDirectory(name string, keyType KeyType) *Directory + func ResolverDirectory(name string, resolver LocatableResolver) *Directory + func (d *Directory) AddSubdirectories(children ...*Directory) *Directory + func (d *Directory) AddSubdirectory(child *Directory) *Directory + func (d *Directory) Depth() int + func (d *Directory) FindChildForValue(value any) *Directory + func (d *Directory) GetSubdirectories() []*Directory + func (d *Directory) GetSubdirectory(name string) *Directory + func (d *Directory) IsConstant() bool + func (d *Directory) IsLeaf() bool + func (d *Directory) NameInTree() string + func (d *Directory) Parent() *Directory + func (d *Directory) ToPathString() string + func (d *Directory) ToTree() string + type FDBResolver struct + func NewFDBResolver(db fdb.Database, ss subspace.Subspace) *FDBResolver + func (r *FDBResolver) CacheSize() int + func (r *FDBResolver) InvalidateCache() + func (r *FDBResolver) Resolve(ctx context.Context, name string) (int64, error) + func (r *FDBResolver) ReverseLookup(ctx context.Context, value int64) (string, bool, error) + type KeySpace struct + func NewKeySpace(root *Directory) *KeySpace + func (ks *KeySpace) Path(name string, value any) (*Path, error) + func (ks *KeySpace) PathFromTuple(t tuple.Tuple) (*Path, tuple.Tuple, error) + func (ks *KeySpace) Root() *Directory + func (ks *KeySpace) String() string + func (ks *KeySpace) Validate() error + type KeyType int + const KeyTypeBoolean + const KeyTypeBytes + const KeyTypeDouble + const KeyTypeFloat + const KeyTypeLong + const KeyTypeNull + const KeyTypeString + const KeyTypeUUID + func (t KeyType) String() string + func (t KeyType) ValidateValue(v any) error + type LocatableResolver interface + Resolve func(ctx context.Context, name string) (int64, error) + ReverseLookup func(ctx context.Context, value int64) (string, bool, error) + type MemoryResolver struct + func NewMemoryResolver(startValue int64) *MemoryResolver + func (r *MemoryResolver) Resolve(_ context.Context, name string) (int64, error) + func (r *MemoryResolver) ReverseLookup(_ context.Context, value int64) (string, bool, error) + func (r *MemoryResolver) Size() int + type Path struct + func (p *Path) Add(name string, value any) (*Path, error) + func (p *Path) Depth() int + func (p *Path) Directory() *Directory + func (p *Path) DirectoryName() string + func (p *Path) Equal(other *Path) bool + func (p *Path) Flatten() []*Path + func (p *Path) GetValue() any + func (p *Path) HasSubdirectory(name string) bool + func (p *Path) IsSameDirectory(other *Path) bool + func (p *Path) ListSubdirectories() []string + func (p *Path) Parent() *Path + func (p *Path) String() string + func (p *Path) ToRange() (fdb.KeyRange, error) + func (p *Path) ToSubspace() subspace.Subspace + func (p *Path) ToTuple() tuple.Tuple + type ResolverFunc func(value any) (any, error)