service

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: 31 Imported by: 1

README

Service

Documentation

Index

Constants

This section is empty.

Variables

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 (*TenantService) GetCurrentTenant

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) UpdateLogo(ctx http.Context) error

func (*TenantService) UpdateTenant

func (s *TenantService) UpdateTenant(ctx context.Context, req *pb.UpdateTenantRequest) (*pb.Tenant, error)

Jump to

Keyboard shortcuts

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