Versions in this module Expand all Collapse all v1 v1.1.0 Jul 10, 2026 Changes in this version + func SyncDefinitions(ctx context.Context, db database.DBTX, reg *Registry) error v1.0.0 Jul 6, 2026 Changes in this version + type OrgAncestry func(ctx context.Context, db database.TenantDB, orgID uuid.UUID) ([]uuid.UUID, error) + type Point struct + AllowedScopes []ScopeKind + Default json.RawMessage + Description string + Key string + Module string + RequiresApproval bool + ValueSchema json.RawMessage + type Proposal struct + EffectiveFrom time.Time + Key string + Scope ScopeKind + ScopeID uuid.UUID + Value json.RawMessage + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Err() error + func (r *Registry) Get(key string) (Point, bool) + func (r *Registry) Keys() []string + func (r *Registry) Points() map[string]Point + func (r *Registry) Register(module string, p Point) + type Resolved struct + IsDefault bool + Key string + Scope ScopeKind + Value json.RawMessage + VersionID uuid.UUID + func (r Resolved) Decode(out any) error + type Resolver struct + func NewResolver(reg *Registry, ancestry OrgAncestry) *Resolver + func (r *Resolver) Resolve(ctx context.Context, db database.TenantDB, key string, org uuid.UUID, ...) (Resolved, error) + type ScopeKind string + const ScopeOrg + const ScopePlatform + const ScopeTenant + type Store struct + func NewStore(reg *Registry, idgen model.IDGen) *Store + func (s *Store) Activate(ctx context.Context, db database.DBTX, versionID, approvedBy uuid.UUID) error + func (s *Store) Propose(ctx context.Context, db database.TenantDB, p Proposal) (uuid.UUID, error)