UNPKG

@hotmeshio/hotmesh

Version:

Serverless Workflow

23 lines (22 loc) 1.02 kB
import { HotMeshEngine, HotMeshWorker } from '../../types/hotmesh'; import { ProviderConfig, ProviderNativeClient } from '../../types/provider'; export declare class ConnectorService { static disconnectAll(): Promise<void>; /** * Connect to a provider (redis, nats, postgres) and return the native * client. Connections are handled by the engine and worker routers at * initialization, but the factory method provided here is useful * for testing provider configurations. */ static connectClient(ProviderConfig: ProviderConfig): Promise<ProviderNativeClient>; /** * Initialize `store`, `stream`, and `subscription` clients for any provider. * @private */ static initClients(target: HotMeshEngine | HotMeshWorker): Promise<void>; /** * Binds a provider client native instance to the target object. * @private */ static initClient(ProviderConfig: ProviderConfig, target: HotMeshEngine | HotMeshWorker, field: string): Promise<void>; }