package
Version:
v1.7.0
Opens a new window with list of versions in this module.
Published: Aug 31, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
QueryTenantID = "tenant_id"
QueryOrgID = "org_id"
)
ID returns the scope id stored in ctx.
WithContext stores the scope level and id in ctx and returns the new context.
If level is non-global and id is empty, ctx is returned unchanged.
Scope represents the tenancy level of a request.
const (
GlobalScope Scope = iota
OrgScope
TenantScope
)
Level returns the scope level stored in ctx, defaulting to GlobalScope.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.