Documentation
¶
Overview ¶
Package tenant carries the request-scoped tenant (organization) identity in a context.Context. It is generic multi-tenancy plumbing with no ORM or domain dependency: a transport interceptor stamps the resolved tenant once per request, and downstream data-access layers read it to scope every operation to that tenant and fail closed when it is absent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TenantFromContext ¶
TenantFromContext extracts the tenant (organization) id from context. The bool is false (and the uuid is uuid.Nil) when the context is nil or no tenant is set — the signal data-access layers use to fail closed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.