Versions in this module Expand all Collapse all v1 v1.1.0 Jul 10, 2026 Changes in this version + type ActivateOptions struct + Gate func(ctx context.Context, db database.TenantDB) error + type Config struct + AllowRelTypes []string + AllowRuleKeys []string + type GrantSpec struct + Actor uuid.UUID + Object resource.Ref + RelType string + SubjectID uuid.UUID + SubjectKind string + ValidFrom time.Time + ValidTo *time.Time + type Relationships struct + func (r *Relationships) Grant(ctx context.Context, spec GrantSpec) (uuid.UUID, error) + func (r *Relationships) Revoke(ctx context.Context, id, actor uuid.UUID) error + type Rules struct + func (r *Rules) ActivateTenant(ctx context.Context, versionID, approvedBy uuid.UUID, opts ActivateOptions) error + type Services struct + func New(module string, platformTx database.TxManager, store *rules.Store, ...) *Services + func (s *Services) Relationships() *Relationships + func (s *Services) Rules() *Rules