Class: ConfigStoreBaseClass<ConfigType>
PURISTA API / Modules / @purista/core / ConfigStoreBaseClass
Class: ConfigStoreBaseClass<ConfigType>
@purista/core.ConfigStoreBaseClass
Base class for config store adapters
Type parameters
Name | Type |
---|---|
ConfigType | extends Record <string , unknown > = {} |
Hierarchy
ConfigStoreBaseClass
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new ConfigStoreBaseClass<ConfigType
>(name
, config
): ConfigStoreBaseClass
<ConfigType
>
Type parameters
Name | Type |
---|---|
ConfigType | extends Record <string , unknown > = {} |
Parameters
Name | Type |
---|---|
name | string |
config | { [K in string | number | symbol]: (Object & ConfigType)[K] } |
Returns
ConfigStoreBaseClass
<ConfigType
>
Defined in
core/ConfigStore/ConfigStoreBaseClass.impl.ts:17
Properties
config
• config: { [K in string | number | symbol]: (Object & ConfigType)[K] }
Defined in
core/ConfigStore/ConfigStoreBaseClass.impl.ts:13
logger
• logger: Logger
Defined in
core/ConfigStore/ConfigStoreBaseClass.impl.ts:12
name
• name: string
name of store
Implementation of
Defined in
core/ConfigStore/ConfigStoreBaseClass.impl.ts:15
Methods
destroy
▸ destroy(): Promise
<void
>
disconnects and shuts down the config store
Returns
Promise
<void
>
Implementation of
Defined in
core/ConfigStore/ConfigStoreBaseClass.impl.ts:67
getConfig
▸ getConfig(..._configNames
): Promise
<Record
<string
, unknown
>>
Parameters
Name | Type |
---|---|
..._configNames | string [] |
Returns
Promise
<Record
<string
, unknown
>>
Implementation of
ConfigStore.getConfig
Defined in
core/ConfigStore/ConfigStoreBaseClass.impl.ts:31
removeConfig
▸ removeConfig(_configName
): Promise
<void
>
Parameters
Name | Type |
---|---|
_configName | string |
Returns
Promise
<void
>
Implementation of
ConfigStore.removeConfig
Defined in
core/ConfigStore/ConfigStoreBaseClass.impl.ts:43
setConfig
▸ setConfig(_configName
, _configValue
): Promise
<void
>
Parameters
Name | Type |
---|---|
_configName | string |
_configValue | unknown |
Returns
Promise
<void
>
Implementation of
ConfigStore.setConfig