Documentation ¶
Index ¶
- Variables
- func NewRegistrar(services *conf.Services, container *di.Container) (registry.Registrar, error)
- func NewTraceContrib(next ...seed.Contrib) seed.Contrib
- func NewUowContrib(uow uow.Manager, next ...seed.Contrib) seed.Contrib
- func NewWebMultiTenancyOption(opt *conf.AppConfig) *shttp.WebMultiTenancyOption
- func Recovery() middleware.Middleware
- func RunWithTenantCache(ctx context.Context, store saas.TenantStore, f func(ctx context.Context) error) error
- func Saas(hmtOpt *shttp.WebMultiTenancyOption, ts saas.TenantStore, ...) middleware.Middleware
- func SeedChangeTenant(store saas.TenantStore, next ...seed.Contrib) seed.Contrib
- type Name
- type SeedFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultProviderSet = kitdi.NewSet( kitdi.Value(http.ReqDecode), kitdi.Value(http.ResEncoder), kitdi.Value(http.ErrEncoder), NewRegistrar, NewWebMultiTenancyOption, )
Functions ¶
func NewRegistrar ¶
func NewWebMultiTenancyOption ¶
func NewWebMultiTenancyOption(opt *conf.AppConfig) *shttp.WebMultiTenancyOption
func RunWithTenantCache ¶
func RunWithTenantCache(ctx context.Context, store saas.TenantStore, f func(ctx context.Context) error) error
RunWithTenantCache get tenant config and cached into context
func Saas ¶
func Saas(hmtOpt *shttp.WebMultiTenancyOption, ts saas.TenantStore, trustedContextValidator api.TrustedContextValidator, options ...saas.ResolveOption) middleware.Middleware
func SeedChangeTenant ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.