Documentation
¶
Overview ¶
Package kratossaas adapts SaaS tenant middleware to Kratos.
包 kratossaas 将 SaaS 租户中间件适配到 Kratos。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostGuard ¶
func HostGuard() middleware.Middleware
HostGuard allows only explicit host context.
func TenantMiddleware ¶
func TenantMiddleware(resolver resolver.Resolver, store store.Store) middleware.Middleware
TenantMiddleware resolves the current tenant and stores it in context.
func TenantStatusGuard ¶
func TenantStatusGuard() middleware.Middleware
TenantStatusGuard allows only active tenants.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.