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: 1

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

func NewAuthorizationOption

func NewAuthorizationOption() *authz.Option

func NewEventServer

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

func NewGRPCServer

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

NewGRPCServer new a gRPC server.

func NewHTTPServer

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

NewHTTPServer new a HTTP server.

func NewJobServer

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

func NewSeeder

func NewSeeder(ts saas.TenantStore, ss 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) Seeding

Jump to

Keyboard shortcuts

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