Documentation ¶
Index ¶
- Variables
- func NewAuthorizationOption(userRole *service.UserRoleContrib) *authz.Option
- func NewEventServer(c *kitconf.Data, conn dal.ConnName, logger klog.Logger, uowMgr uow2.Manager, ...) *event.ConsumerFactoryServer
- func NewGRPCServer(c *conf.Services, tokenizer jwt.Tokenizer, ts saas.TenantStore, ...) *grpc.Server
- func NewHTTPServer(c *conf.Services, sCfg *conf.Security, tokenizer jwt.Tokenizer, ...) *khttp.Server
- func NewJobServer(opt asynq.RedisConnOpt, log klog.Logger, handler biz.UserMigrationTaskHandler) *job.Server
- func NewSeeder(ts saas.TenantStore, us Seeding) seed.Seeder
- type Seeding
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientName api.ClientName = api2.ServiceName
View Source
var ProviderSet = wire.NewSet(NewHTTPServer, NewGRPCServer, NewJobServer, NewEventServer, wire.Value(ClientName), wire.Value(biz.ConnName), NewSeeding, NewSeeder, NewAuthorizationOption)
ProviderSet is server providers.
Functions ¶
func NewAuthorizationOption ¶
func NewAuthorizationOption(userRole *service.UserRoleContrib) *authz.Option
func NewEventServer ¶
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
Types ¶
Click to show internal directories.
Click to hide internal directories.