Skip to main content

Class: ConfigStoreBaseClass<ConfigType>


PURISTA API / Modules / @purista/core / ConfigStoreBaseClass

Class: ConfigStoreBaseClass<ConfigType>

@purista/core.ConfigStoreBaseClass

Base class for config store adapters

Type parameters

NameType
ConfigTypeextends Record<string, unknown> = {}

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ConfigStoreBaseClass<ConfigType>(name, config): ConfigStoreBaseClass<ConfigType>

Type parameters

NameType
ConfigTypeextends Record<string, unknown> = {}

Parameters

NameType
namestring
config{ [K in string | number | symbol]: (Object & ConfigType)[K] }

Returns

ConfigStoreBaseClass<ConfigType>

Defined in

core/ConfigStore/ConfigStoreBaseClass.impl.ts:17open in new window

Properties

config

config: { [K in string | number | symbol]: (Object & ConfigType)[K] }

Defined in

core/ConfigStore/ConfigStoreBaseClass.impl.ts:13open in new window


logger

logger: Logger

Defined in

core/ConfigStore/ConfigStoreBaseClass.impl.ts:12open in new window


name

name: string

name of store

Implementation of

ConfigStore.name

Defined in

core/ConfigStore/ConfigStoreBaseClass.impl.ts:15open in new window

Methods

destroy

destroy(): Promise<void>

disconnects and shuts down the config store

Returns

Promise<void>

Implementation of

ConfigStore.destroy

Defined in

core/ConfigStore/ConfigStoreBaseClass.impl.ts:67open in new window


getConfig

getConfig(..._configNames): Promise<Record<string, unknown>>

Parameters

NameType
..._configNamesstring[]

Returns

Promise<Record<string, unknown>>

Implementation of

ConfigStore.getConfig

Defined in

core/ConfigStore/ConfigStoreBaseClass.impl.ts:31open in new window


removeConfig

removeConfig(_configName): Promise<void>

Parameters

NameType
_configNamestring

Returns

Promise<void>

Implementation of

ConfigStore.removeConfig

Defined in

core/ConfigStore/ConfigStoreBaseClass.impl.ts:43open in new window


setConfig

setConfig(_configName, _configValue): Promise<void>

Parameters

NameType
_configNamestring
_configValueunknown

Returns

Promise<void>

Implementation of

ConfigStore.setConfig

Defined in

core/ConfigStore/ConfigStoreBaseClass.impl.ts:55open in new window

Last update:
Contributors: Sebastian Wessel