Versions in this module Expand all Collapse all v0 v0.14.0 Apr 24, 2024 v0.13.0 Feb 27, 2024 Changes in this version + const CachePropertiesPrefix + const IsChildrenOfPredict + const IsParentOfPredict + const RedisZsetMaxByte + const RootTenantKey + const STATUS_FAILED_TO_LOAD_ROOT_TENANT + const STATUS_IN_PROGRESS + const STATUS_LOADED + const StatusKey + const ZsetKey + var Module = &bootstrap.Module + func AnyHasDescendant(ctx context.Context, tenantIDs utils.StringSet, descendant string) bool + func BuildSpsString(subject string, predict string, object ...string) string + func GetAncestors(ctx context.Context, tenantId string) ([]string, error) + func GetChildren(ctx context.Context, tenantId string) ([]string, error) + func GetDescendants(ctx context.Context, tenantId string) ([]string, error) + func GetObjectOfSpo(spo string) (string, error) + func GetParent(ctx context.Context, tenantId string) (string, error) + func GetRoot(ctx context.Context) (string, error) + func GetTenancyPath(ctx context.Context, tenantId string) ([]uuid.UUID, error) + func IsLoaded(ctx context.Context) bool + func Use() + func ZInclusive(min string) string + type Accessor interface + GetAncestors func(ctx context.Context, tenantId string) ([]string, error) + GetChildren func(ctx context.Context, tenantId string) ([]string, error) + GetDescendants func(ctx context.Context, tenantId string) ([]string, error) + GetParent func(ctx context.Context, tenantId string) (string, error) + GetRoot func(ctx context.Context) (string, error) + GetTenancyPath func(ctx context.Context, tenantId string) ([]uuid.UUID, error) + IsLoaded func(ctx context.Context) bool + type CacheProperties struct + DbIndex int + type TenancyAccessor struct + func (a *TenancyAccessor) GetAncestors(ctx context.Context, tenantId string) ([]string, error) + func (a *TenancyAccessor) GetChildren(ctx context.Context, tenantId string) ([]string, error) + func (a *TenancyAccessor) GetDescendants(ctx context.Context, tenantId string) ([]string, error) + func (a *TenancyAccessor) GetParent(ctx context.Context, tenantId string) (string, error) + func (a *TenancyAccessor) GetRoot(ctx context.Context) (string, error) + func (a *TenancyAccessor) GetTenancyPath(ctx context.Context, tenantId string) ([]uuid.UUID, error) + func (a *TenancyAccessor) IsLoaded(ctx context.Context) bool