Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoTenant reports that a tenant-scoped operation was called without a tenant context. ErrNoTenant = errors.New("gotenancy: no tenant in context") // ErrForbidden reports that the current tenant or side is not allowed to perform an operation. ErrForbidden = errors.New("gotenancy: forbidden") // ErrInvalidState reports an invalid tenant lifecycle transition or unsupported state. ErrInvalidState = errors.New("gotenancy: invalid state") // ErrHostRequired reports that an operation requires explicit host-side context. ErrHostRequired = errors.New("gotenancy: host context required") // ErrTenantMismatch reports that a resource belongs to a different tenant than the active context. ErrTenantMismatch = errors.New("gotenancy: tenant mismatch") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
biz
|
|
|
Package cache contains tenant-aware cache abstractions.
|
Package cache contains tenant-aware cache abstractions. |
|
Package core contains tenant context, resolver, store, and type abstractions.
|
Package core contains tenant context, resolver, store, and type abstractions. |
|
Package data contains ORM-independent tenant filtering contracts.
|
Package data contains ORM-independent tenant filtering contracts. |
|
ent
Package enttenant adapts GoTenancy data filters to Ent SQL selectors.
|
Package enttenant adapts GoTenancy data filters to Ent SQL selectors. |
|
examples
|
|
|
quickstart
command
|
|
|
internal
|
|
|
testcontract
Package testcontract contains reusable contract tests for stores and filters.
|
Package testcontract contains reusable contract tests for stores and filters. |
|
Package migration contains tenant schema migration planning APIs.
|
Package migration contains tenant schema migration planning APIs. |
|
grpc
Package grpcgotenancy adapts GoTenancy tenant propagation to gRPC interceptors.
|
Package grpcgotenancy adapts GoTenancy tenant propagation to gRPC interceptors. |
|
Package saas contains tenant lifecycle, plan, subscription, quota, and feature modules.
|
Package saas contains tenant lifecycle, plan, subscription, quota, and feature modules. |
|
Package web contains web framework integration adapters.
|
Package web contains web framework integration adapters. |
|
echo
Package echogotenancy adapts GoTenancy tenant middleware to Echo.
|
Package echogotenancy adapts GoTenancy tenant middleware to Echo. |
|
fiber
Package fibergotenancy adapts GoTenancy tenant middleware to Fiber.
|
Package fibergotenancy adapts GoTenancy tenant middleware to Fiber. |
|
kratos
Package kratosgotenancy adapts GoTenancy tenant middleware to Kratos.
|
Package kratosgotenancy adapts GoTenancy tenant middleware to Kratos. |
Click to show internal directories.
Click to hide internal directories.