api

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: 14 Imported by: 9

Documentation

Index

Constants

View Source
const (
	ResourceTenant = "saas.tenant"
)
View Source
const ServiceName = "saas"

Variables

Functions

func NewTenantGrpcClient

func NewTenantGrpcClient(conn GrpcConn) v1.TenantServiceServer

func NewTenantInternalGrpcClient

func NewTenantInternalGrpcClient(conn GrpcConn) v1.TenantInternalServiceServer

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 HttpClient *http.Client

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)

Directories

Path Synopsis
tenant
v1

Jump to

Keyboard shortcuts

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