Documentation ¶
Index ¶
Constants ¶
View Source
const (
ResourceTenant = "saas.tenant"
)
View Source
const ServiceName = "saas"
Variables ¶
View Source
var GrpcProviderSet = wire.NewSet(NewTenantStore, NewGrpcConn, NewTenantGrpcClient, NewTenantInternalGrpcClient)
Functions ¶
func NewTenantGrpcClient ¶
func NewTenantGrpcClient(conn GrpcConn) v1.TenantServiceServer
func NewTenantInternalGrpcClient ¶
func NewTenantInternalGrpcClient(conn GrpcConn) v1.TenantInternalServiceServer
func NewTenantStore ¶
func NewTenantStore(srv v1.TenantInternalServiceServer) saas.TenantStore
Types ¶
type GrpcConn ¶
type GrpcConn grpc.ClientConnInterface
func NewGrpcConn ¶
func NewGrpcConn(clientName api.ClientName, services *conf.Services, dis registry.Discovery, opt *api.Option, tokenMgr api.TokenManager, logger log.Logger, opts ...grpc2.ClientOption) (GrpcConn, func())
type HttpClient ¶
type TenantStore ¶
type TenantStore struct {
// contains filtered or unexported fields
}
func (*TenantStore) GetByNameOrId ¶
func (r *TenantStore) GetByNameOrId(ctx context.Context, nameOrId string) (*saas.TenantConfig, error)
Click to show internal directories.
Click to hide internal directories.