Class: DaprConfigStore
PURISTA API / Modules / @purista/dapr-sdk / DaprConfigStore
Class: DaprConfigStore
@purista/dapr-sdk.DaprConfigStore
DaprConfigStore is an adapter which connects to the config store provided by the underlaying Dapr infrastructure
Hierarchy
ConfigStoreBaseClass
<DaprConfigStoreConfig
>↳
DaprConfigStore
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new DaprConfigStore(config?
): DaprConfigStore
Parameters
Name | Type | Description |
---|---|---|
config? | Object | - |
config.cacheTtl? | number | Cache time to live in ms |
config.clientConfig? | DaprClientConfig | The Dapr client config to interact with Dapr sidecar |
config.configStoreName? | string | The name of the config store |
config.enableCache? | boolean | Enable cache |
config.enableGet? | boolean | Enable generally get method |
config.enableRemove? | boolean | Enable generally remove method |
config.enableSet? | boolean | Enable generally set method |
config.logLevel? | LogLevelName | A log level for new logger if logger is not set |
config.logger? | Logger | A logger instance |
Returns
Overrides
ConfigStoreBaseClass<DaprConfigStoreConfig>.constructor
Defined in
dapr-sdk/src/DaprConfigStore/DaprConfigStore.impl.ts:17
Properties
client
• Private
client: HttpClient
<DaprClientConfig
>
Defined in
dapr-sdk/src/DaprConfigStore/DaprConfigStore.impl.ts:15
config
• config: Object
Type declaration
Name | Type | Description |
---|---|---|
cacheTtl? | number | Cache time to live in ms |
clientConfig? | DaprClientConfig | The Dapr client config to interact with Dapr sidecar |
configStoreName? | string | The name of the config store |
enableCache? | boolean | Enable cache |
enableGet? | boolean | Enable generally get method |
enableRemove? | boolean | Enable generally remove method |
enableSet? | boolean | Enable generally set method |
logLevel? | LogLevelName | A log level for new logger if logger is not set |
logger? | Logger | A logger instance |
Inherited from
ConfigStoreBaseClass.config
Defined in
core/lib/types/core/ConfigStore/ConfigStoreBaseClass.impl.d.ts:10
logger
• logger: Logger
Inherited from
ConfigStoreBaseClass.logger
Defined in
core/lib/types/core/ConfigStore/ConfigStoreBaseClass.impl.d.ts:9
name
• name: string
Inherited from
ConfigStoreBaseClass.name
Defined in
core/lib/types/core/ConfigStore/ConfigStoreBaseClass.impl.d.ts:11
Methods
destroy
▸ destroy(): Promise
<void
>
Returns
Promise
<void
>
Inherited from
ConfigStoreBaseClass.destroy
Defined in
core/lib/types/core/ConfigStore/ConfigStoreBaseClass.impl.d.ts:16
getConfig
▸ getConfig(...configNames
): Promise
<Record
<string
, unknown
>>
Parameters
Name | Type |
---|---|
...configNames | string [] |
Returns
Promise
<Record
<string
, unknown
>>
Overrides
ConfigStoreBaseClass.getConfig
Defined in
dapr-sdk/src/DaprConfigStore/DaprConfigStore.impl.ts:52
removeConfig
▸ removeConfig(_configName
): Promise
<void
>
Parameters
Name | Type |
---|---|
_configName | string |
Returns
Promise
<void
>
Overrides
ConfigStoreBaseClass.removeConfig
Defined in
dapr-sdk/src/DaprConfigStore/DaprConfigStore.impl.ts:88
setConfig
▸ setConfig(_configName
, _configValue
): Promise
<void
>
Parameters
Name | Type |
---|---|
_configName | string |
_configValue | unknown |
Returns
Promise
<void
>
Overrides
ConfigStoreBaseClass.setConfig