@hotmeshio/hotmesh
Version:
Serverless Workflow
24 lines (23 loc) • 854 B
TypeScript
import { Connection } from '../../types/meshflow';
import { ProviderConfig, ProvidersConfig } from '../../types/provider';
/**
* The Connection service is used to declare the class
* and connection options but does not connect quite yet. Connection
* happens at a later lifecycle stage when a workflow
* is started by the MeshFlow Client module (`(new MeshFlow.Client())).start()`).
*
* The config options optionall support a multi-connection setup
* where the `store` connection explicitly defined along with `stream`, `sub`, etc.
* For example, Postgres can be used for stream and store while
* Redis is used for sub.
*/
export declare class ConnectionService {
/**
* @private
*/
constructor();
/**
* Instance initializer
*/
static connect(config: ProviderConfig | ProvidersConfig): Promise<Connection>;
}