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>
returns:
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
@ -242,9 +248,8 @@ types:
type: object
fields:
persistence:
type: string
default: "memory"
description: "Backend for persisting the SDS local history. Implementations MAY support custom backends (e.g., 'memory', 'sqlite')."
type: IPersistence
description: "Backend for persisting the SDS local history. Implementations MAY support custom backends."
acknowledgementTimeoutMs:
type: uint
default: 5000