Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TenantKey is the key that holds the tenant in a request context. TenantKey = mw.EchoTenantKey // DefaultSkipper defines the default skipper function. DefaultSkipper = mw.DefaultSkipper // DefaultTenantGetters represents the default tenant getters DefaultTenantGetters = mw.DefaultTenantGetters )
Functions ¶
func SetTenant ¶
func SetTenant(ctx echo.Context, tenant string)
SetTenant sets the tenant in the request context
func TenantFromContext ¶
TenantFromContext retrieves the tenant from the request context
func WithTenant ¶
func WithTenant(config WithTenantConfig) echo.MiddlewareFunc
WithTenant creates new middleware which sets the tenant in the request context
Types ¶
type WithTenantConfig ¶
type WithTenantConfig = mw.WithTenantConfig
WithTenantConfig defines the config for WithTenant middleware.
Click to show internal directories.
Click to hide internal directories.