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>
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user