Skip to main content

terafoundation / connector-utils

connector-utils

Functions

createClient()

createClient(name, moduleConfig, logger, options): Promise<ConnectorOutput>

Defined in: connector-utils.ts:153

Parameters

ParameterType
namestring
moduleConfigRecord<string, any>
loggerLogger
optionsRecord<string, any>

Returns

Promise<ConnectorOutput>


getConnectorModule()

getConnectorModule<S>(name, reason): Promise<null | Connector<S>>

Defined in: connector-utils.ts:90

Type Parameters

Type ParameterDefault type
SRecord<string, any>

Parameters

ParameterType
namestring
reasonstring

Returns

Promise<null | Connector<S>>


getConnectorSchemaAndValFn()

getConnectorSchemaAndValFn<S>(name): Promise<Initializers<S>>

Defined in: connector-utils.ts:138

Type Parameters

Type Parameter
S

Parameters

ParameterType
namestring

Returns

Promise<Initializers<S>>