add IPersistence as sds config param

This commit is contained in:
Ivan FB 2026-04-23 22:56:46 +02:00
parent 89148cae12
commit 033f17af96
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270

View File

@ -170,6 +170,12 @@ types:
type: array<byte> type: array<byte>
returns: returns:
type: result<array<byte>, error> type: result<array<byte>, error>
IPersistence:
type: object
description: "Interface for a pluggable SDS persistence backend.
Implementations MUST provide all functions required to save and retrieve SDS state per channel.
Refer to the [SDS spec](https://lip.logos.co/ift-ts/raw/sds.html) for the full definition of what state must be persisted."
``` ```
### Channel ### Channel
@ -242,9 +248,8 @@ types:
type: object type: object
fields: fields:
persistence: persistence:
type: string type: IPersistence
default: "memory" description: "Backend for persisting the SDS local history. Implementations MAY support custom backends."
description: "Backend for persisting the SDS local history. Implementations MAY support custom backends (e.g., 'memory', 'sqlite')."
acknowledgementTimeoutMs: acknowledgementTimeoutMs:
type: uint type: uint
default: 5000 default: 5000