Documentation ¶
Index ¶
- Variables
- type GrpcServerRegister
- type HttpServerRegister
- type TenantInternalService
- type TenantService
- func (s *TenantService) CreateTenant(ctx context.Context, req *pb.CreateTenantRequest) (*pb.Tenant, error)
- func (s *TenantService) DeleteTenant(ctx context.Context, req *pb.DeleteTenantRequest) (*pb.DeleteTenantReply, error)
- func (s *TenantService) GetCurrentTenant(ctx context.Context, req *pb.GetCurrentTenantRequest) (*pb.GetCurrentTenantReply, error)
- func (s *TenantService) GetTenant(ctx context.Context, req *pb.GetTenantRequest) (*pb.Tenant, error)
- func (s *TenantService) GetTenantPublic(ctx context.Context, req *pb.GetTenantPublicRequest) (*pb.TenantInfo, error)
- func (s *TenantService) ListTenant(ctx context.Context, req *pb.ListTenantRequest) (*pb.ListTenantReply, error)
- func (s *TenantService) UpdateLogo(ctx http.Context) error
- func (s *TenantService) UpdateTenant(ctx context.Context, req *pb.UpdateTenantRequest) (*pb.Tenant, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewHttpServerRegister, NewGrpcServerRegister, NewTenantService, wire.Bind(new(v1.TenantServiceServer), new(*TenantService)), wire.Struct(new(TenantInternalService), "*"), wire.Bind(new(v1.TenantInternalServiceServer), new(*TenantInternalService)))
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type GrpcServerRegister ¶
type GrpcServerRegister server.GrpcServiceRegister
func NewGrpcServerRegister ¶
func NewGrpcServerRegister(tenant *TenantService, tenantInternal *TenantInternalService) GrpcServerRegister
type HttpServerRegister ¶
type HttpServerRegister server.HttpServiceRegister
func NewHttpServerRegister ¶
func NewHttpServerRegister( tenant *TenantService, factory blob.Factory, authzSrv authz.Service, errEncoder khttp.EncodeErrorFunc, tenantInternal *TenantInternalService, dataCfg *kconf.Data, ) HttpServerRegister
type TenantInternalService ¶
type TenantInternalService struct { pb.UnimplementedTenantInternalServiceServer `wire:"-"` Trusted sapi.TrustedContextValidator UseCase *biz.TenantUseCase App *conf.AppConfig Blob blob.Factory }
func (*TenantInternalService) GetTenant ¶
func (s *TenantInternalService) GetTenant(ctx context.Context, req *pb.GetTenantRequest) (*pb.Tenant, error)
type TenantService ¶
type TenantService struct { pb.UnimplementedTenantServiceServer // contains filtered or unexported fields }
func NewTenantService ¶
func NewTenantService(useCase *biz.TenantUseCase, auth authz.Service, trusted sapi.TrustedContextValidator, blob blob.Factory, app *conf.AppConfig) *TenantService
func (*TenantService) CreateTenant ¶
func (s *TenantService) CreateTenant(ctx context.Context, req *pb.CreateTenantRequest) (*pb.Tenant, error)
func (*TenantService) DeleteTenant ¶
func (s *TenantService) DeleteTenant(ctx context.Context, req *pb.DeleteTenantRequest) (*pb.DeleteTenantReply, error)
func (*TenantService) GetCurrentTenant ¶
func (s *TenantService) GetCurrentTenant(ctx context.Context, req *pb.GetCurrentTenantRequest) (*pb.GetCurrentTenantReply, error)
func (*TenantService) GetTenant ¶
func (s *TenantService) GetTenant(ctx context.Context, req *pb.GetTenantRequest) (*pb.Tenant, error)
func (*TenantService) GetTenantPublic ¶
func (s *TenantService) GetTenantPublic(ctx context.Context, req *pb.GetTenantPublicRequest) (*pb.TenantInfo, error)
GetTenantPublic return public info of tenant
func (*TenantService) ListTenant ¶
func (s *TenantService) ListTenant(ctx context.Context, req *pb.ListTenantRequest) (*pb.ListTenantReply, error)
func (*TenantService) UpdateLogo ¶
func (s *TenantService) UpdateLogo(ctx http.Context) error
func (*TenantService) UpdateTenant ¶
func (s *TenantService) UpdateTenant(ctx context.Context, req *pb.UpdateTenantRequest) (*pb.Tenant, error)
Click to show internal directories.
Click to hide internal directories.