server

package
v0.0.5-0...-8e55a6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 19 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewRegistrar

func NewRegistrar(services *conf.Services, container *di.Container) (registry.Registrar, error)

func NewTraceContrib

func NewTraceContrib(next ...seed.Contrib) seed.Contrib

func NewUowContrib

func NewUowContrib(uow uow.Manager, next ...seed.Contrib) seed.Contrib

func NewWebMultiTenancyOption

func NewWebMultiTenancyOption(opt *conf.AppConfig) *shttp.WebMultiTenancyOption

func Recovery

func Recovery() middleware.Middleware

Recovery wrap kratos recovery with handler

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

func SeedChangeTenant(store saas.TenantStore, next ...seed.Contrib) seed.Contrib

Types

type Name

type Name string

Name server name.

type SeedFunc

type SeedFunc func(ctx context.Context, sCtx *seed.Context) error

func (SeedFunc) Seed

func (s SeedFunc) Seed(ctx context.Context, sCtx *seed.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL