@terascope/types / terafoundation
terafoundation
Index
Interfaces
Interface | Description |
---|---|
ConnectionConfig | - |
Connector | - |
ConnectorOutput | - |
FoundationAPIs | - |
FoundationWorker | - |
PromMetrics | - |
PromMetricsAPIConfig | - |
PromMetricsInitConfig | - |
TerafoundationConfig | - |
Type Aliases
Cluster
Cluster:
Overwrite
<NodeJSCluster
,object
>
Source
Config<S, A, D>
Config<
S
,A
,D
>:object
Type parameters
Type parameter | Value |
---|---|
S | Record <string , any > |
A | Record <string , any > |
D extends string | string |
Type declaration
cluster_name?
optional
cluster_name:string
| (sysconfig
) =>string
config_schema?
optional
config_schema:any
default_config_file?
optional
default_config_file:string
descriptors?
optional
descriptors:Record
<D
,string
>
master()?
optional
master: (context
,config
) =>void
|Promise
<void
>
Parameters
Parameter | Type |
---|---|
context | Context <S , A , D > |
config | Config <S , A , D > |
Returns
void
| Promise
<void
>
name
name:
string
schema_formats?
optional
schema_formats:Format
[]
script()?
optional
script: (context
) =>void
|Promise
<void
>
Parameters
Parameter | Type |
---|---|
context | Context <S , A , D > |
Returns
void
| Promise
<void
>
shutdownMessaging?
optional
shutdownMessaging:boolean
start_workers?
optional
start_workers:boolean
worker()?
optional
worker: (context
) =>void
|Promise
<void
>
Parameters
Parameter | Type |
---|---|
context | Context <S , A , D > |
Returns
void
| Promise
<void
>
Source
Context<S, A, D>
Context<
S
,A
,D
>:object
Type parameters
Type parameter | Value |
---|---|
S | Record <string , any > |
A | Record <string , any > |
D extends string | string |
Type declaration
apis
apis:
ContextAPIs
&A
arch
arch:
string
assignment
assignment:
D
cluster
cluster:
Cluster
cluster_name?
optional
cluster_name:string
logger
logger:
Logger
name
name:
string
platform
platform:
string
sysconfig
sysconfig:
SysConfig
<S
>
Source
ContextAPIs
ContextAPIs:
object
Index signature
[namespace
: string
]: any
Type declaration
foundation
readonly
foundation:FoundationAPIs
registerAPI()
Parameters
Parameter | Type |
---|---|
namespace | string |
apis | any |
Returns
void
Source
CreateClientFactoryFn()
CreateClientFactoryFn: (
config
,logger
,options
) =>Promise
<ConnectorOutput
>
Parameters
Parameter | Type |
---|---|
config | Record <string , any > |
logger | Logger |
options | ConnectionConfig |
Returns
Promise
<ConnectorOutput
>
Source
Initializers<S>
Initializers<
S
>:object
Type parameters
Type parameter | Value |
---|---|
S | Record <string , any > |
Type declaration
schema
schema:
Schema
<S
>
validatorFn?
optional
validatorFn:ValidatorFn
<S
>
Source
LogLevelConfig
LogLevelConfig:
string
|{ [type in LogType]: LogLevelType }
[]
Source
LogLevelType
LogLevelType:
"trace"
|"debug"
|"info"
|"warn"
|"error"
|"fatal"
Source
LogType
LogType:
"console"
|"file"
Source
MetricList
MetricList:
Record
<string
,object
>
Source
Schema<T>
Schema<
T
>: { [P in keyof T]: Schema<T[P]> | SchemaObj<T[P]> }
Type parameters
Type parameter |
---|
T |
Source
SysConfig<S>
SysConfig<
S
>:object
&S
Type declaration
_nodeName
_nodeName:
string
terafoundation
terafoundation:
TerafoundationConfig
Type parameters
Type parameter |
---|
S |
Source
ValidationObj<S>
ValidationObj<
S
>:object
Type parameters
Type parameter |
---|
S |
Type declaration
config
config:
Record
<string
,any
>
connector?
optional
connector:boolean
validatorFn?
optional
validatorFn:ValidatorFn
<S
>
Source
ValidatorFn()<S>
ValidatorFn<
S
>: (config
,sysconfig
) =>void
Type parameters
Type parameter | Value |
---|---|
S | Record <string , any > |
Parameters
Parameter | Type |
---|---|
config | Record <string , any > |
sysconfig | SysConfig <S > |
Returns
void