mirror of
https://github.com/logos-messaging/specs.git
synced 2026-05-18 19:09:33 +00:00
add IPersistence as sds config param
This commit is contained in:
parent
89148cae12
commit
033f17af96
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user