Std.App.Tenant
20 public declarations
- Admission
The result of an admission check for a tenant request.
- admit
&Std.App.Tenant.TenantRegistry -> Str -> Int -> Std.App.Tenant.AdmissionAtomically check admission bounds for an incoming tenant request.
- enterpriseQuota
Std.App.Tenant.QuotaStandard quota for enterprise-tier accounts.
- freeQuota
Std.App.Tenant.QuotaStandard quota for free-tier accounts: tight concurrency and rate bounds.
- get
&Std.App.Tenant.TenantRegistry -> Str -> Option[Std.App.Tenant.Tenant]Look up a tenant by ID.
- guard
&Std.App.Tenant.TenantRegistry -> fn(&Std.Http.Server.Route.Request) -> Option[Str] -> fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseHTTP middleware enforcing tenant admission, concurrency bounds, and account status.
- Quota
Resource bounds allocated to a tenant.
- register
&Std.App.Tenant.TenantRegistry -> Std.App.Tenant.Tenant -> ()Register a new tenant or update an existing tenant's specification.
- registry
Std.App.Tenant.TenantRegistryInitialize an empty synchronized tenant registry.
- release
&Std.App.Tenant.TenantRegistry -> Str -> ()Atomically release a concurrent in-flight request slot for a tenant.
- resolveFromHeader
Str -> fn(&Std.Http.Server.Route.Request) -> Option[Str]Tenant resolver extracting tenant identifier from an HTTP header.
- scopedKey
Str -> Str -> StrConstruct a tenant-scoped resource key preventing cross-tenant data collisions.
- setActive
&Std.App.Tenant.TenantRegistry -> Str -> Bool -> BoolEnable or suspend a tenant account.
- setQuota
&Std.App.Tenant.TenantRegistry -> Str -> Std.App.Tenant.Quota -> BoolDynamically update resource quotas for a tenant.
- standardQuota
Std.App.Tenant.QuotaStandard quota for standard-tier accounts.
- tenant
Str -> Str -> Std.App.Tenant.Tier -> Std.App.Tenant.Quota -> Std.App.Tenant.TenantConstruct a tenant with default active status.
- Tenant
A registered tenant with identity, tier, and resource bounds.
- TenantRegistry
A thread-safe synchronized tenant store coordinating tenant bounds and admission.
- TenantState
Dynamic runtime state tracking concurrent and rate metrics for a tenant.
- Tier
Service tier determining default resource quotas.
