server

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 32 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

func NewAuthorizationOption

func NewAuthorizationOption(userRole *service.UserRoleContrib) *authz.Option

func NewEventServer

func NewEventServer(c *kitconf.Data, conn dal.ConnName, logger klog.Logger, uowMgr uow2.Manager, tenantSeed biz.TenantSeedEventHandler) *event.ConsumerFactoryServer

func NewGRPCServer

func NewGRPCServer(
	c *conf.Services,
	tokenizer jwt.Tokenizer,
	ts saas.TenantStore,
	uowMgr uow2.Manager,
	mOpt *http2.WebMultiTenancyOption,
	apiOpt *sapi.Option,
	logger log.Logger,
	validator sapi.TrustedContextValidator,
	userTenant *api.UserTenantContrib,
	register service.GrpcServerRegister,
) *grpc.Server

NewGRPCServer new a gRPC server.

func NewHTTPServer

func NewHTTPServer(c *conf.Services,
	sCfg *conf.Security,
	tokenizer jwt.Tokenizer,
	uowMgr uow2.Manager,
	mOpt *shttp.WebMultiTenancyOption,
	apiOpt *sapi.Option,
	ts saas.TenantStore,
	reqDecoder khttp.DecodeRequestFunc,
	resEncoder khttp.EncodeResponseFunc,
	errEncoder khttp.EncodeErrorFunc,
	logger log.Logger,
	userTenant *api.UserTenantContrib,
	validator sapi.TrustedContextValidator,
	refreshProvider session.RefreshTokenProvider,
	register service.HttpServerRegister,
) *khttp.Server

NewHTTPServer new a HTTP server.

func NewJobServer

func NewJobServer(opt asynq.RedisConnOpt, log klog.Logger, handler biz.UserMigrationTaskHandler) *job.Server

func NewSeeder

func NewSeeder(ts saas.TenantStore, us Seeding) seed.Seeder

Types

type Seeding

type Seeding seed.Contrib

Seeding workaround for https://github.com/google/wire/issues/207

func NewSeeding

func NewSeeding(uow uow.Manager,
	migrate *data.Migrate,
	roleSeed *biz.RoleSeed,
	userSeed *biz.UserSeed,
	p *biz.PermissionSeeder) Seeding

Jump to

Keyboard shortcuts

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