Documentation ¶
Index ¶
- Variables
- func NewAuthorizationOption() *authz.Option
- func NewGRPCServer(c *conf2.Services, tokenizer jwt.Tokenizer, ts saas.TenantStore, ...) *grpc.Server
- func NewHTTPServer(c *conf2.Services, sCfg *conf2.Security, tokenizer jwt.Tokenizer, ...) *khttp.Server
- func NewSeeder(ts saas.TenantStore, seeds []seed.Contrib) seed.Seeder
- func NewSeeding(uow uow.Manager, migrate *data.Migrate, post *biz.PostSeeder) seed.Contrib
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientName api.ClientName = api2.ServiceName
View Source
var ProviderSet = kitdi.NewSet( NewAuthorizationOption, kitdi.NewProvider(NewHTTPServer, di.As(new(transport.Server))), kitdi.NewProvider(NewGRPCServer, di.As(new(transport.Server))), NewSeeder, NewSeeding, kitdi.Value(ClientName))
ProviderSet is server providers.
Functions ¶
func NewAuthorizationOption ¶
func NewGRPCServer ¶
func NewGRPCServer( c *conf2.Services, tokenizer jwt.Tokenizer, ts saas.TenantStore, uowMgr uow2.Manager, mOpt *shttp.WebMultiTenancyOption, apiOpt *api2.Option, validator sapi.TrustedContextValidator, logger log.Logger, register []kitgrpc.ServiceRegister, ) *grpc.Server
NewGRPCServer new a gRPC server.
func NewHTTPServer ¶
func NewHTTPServer(c *conf2.Services, sCfg *conf2.Security, tokenizer jwt.Tokenizer, ts saas.TenantStore, uowMgr uow2.Manager, reqDecoder khttp.DecodeRequestFunc, resEncoder khttp.EncodeResponseFunc, errEncoder khttp.EncodeErrorFunc, mOpt *shttp.WebMultiTenancyOption, apiOpt *api2.Option, validator sapi.TrustedContextValidator, register []kithttp.ServiceRegister, logger log.Logger) *khttp.Server
NewHTTPServer new a HTTP server.
func NewSeeding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.