UNPKG

@dolittle/sdk.tenancy

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

25 lines 1.12 kB
import { Logger } from 'winston'; import { ExecutionContext } from '@dolittle/sdk.execution'; import { Cancellation } from '@dolittle/sdk.resilience'; import { TenantsClient } from '@dolittle/contracts/Runtime/Tenancy/Tenants_grpc_pb'; import { ITenants } from '../ITenants'; import { Tenant } from '../Tenant'; /** * Represents a client for Tenants and an implementation of {@link ITenants} that knows how to register Event Types with the Runtime. */ export declare class Tenants extends ITenants { private readonly _client; readonly _executionContext: ExecutionContext; private readonly _logger; /** * Initializes an instance of the {@link Tenants} class. * @param {TenantsClient} _client - The event types client. * @param {ExecutionContext} _executionContext - The execution context. * @param {Logger} _logger - The logger. */ constructor(_client: TenantsClient, _executionContext: ExecutionContext, _logger: Logger); /** @inheritdoc */ getAll(cancellation?: Cancellation): Promise<Tenant[]>; private static createTenant; } //# sourceMappingURL=Tenants.d.ts.map