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: 4 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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