8 Commits

Author SHA1 Message Date
contact
34689ca82d msgstore_memory: add comment about Append dropping messages
git-svn-id: file:///srv/svn/repo/suika/trunk@669 f0ae65fe-ee39-954e-97ec-027ff2717ef4
2021-11-03 17:25:39 +00:00
contact
58db345425 msgstore: add context to messageStore methods
This allows setting a hard timeout.

git-svn-id: file:///srv/svn/repo/suika/trunk@667 f0ae65fe-ee39-954e-97ec-027ff2717ef4
2021-11-03 17:21:05 +00:00
contact
21f482684d msgstore: take Network as arg instead of network
The message stores don't need to access the internal network
struct, they just need network metadata such as ID and name.

This can ease moving message stores into a separate package in the
future.

git-svn-id: file:///srv/svn/repo/suika/trunk@666 f0ae65fe-ee39-954e-97ec-027ff2717ef4
2021-11-03 15:37:01 +00:00
delthas
9cefc64749 Add support for draft/event-playback
git-svn-id: file:///srv/svn/repo/suika/trunk@665 f0ae65fe-ee39-954e-97ec-027ff2717ef4
2021-11-03 14:17:16 +00:00
contact
b893736c9e Check message stores implement expected interfaces
git-svn-id: file:///srv/svn/repo/suika/trunk@517 f0ae65fe-ee39-954e-97ec-027ff2717ef4
2021-05-18 12:19:34 +00:00
contact
00fbbb9d0d Use BARE for internal message IDs
This allows to have shorter and more future-proof IDs. This also
guarantees the IDs will only use reasonable ASCII characters (no
spaces), removing the need to encode them for PING/PONG tokens.

git-svn-id: file:///srv/svn/repo/suika/trunk@488 f0ae65fe-ee39-954e-97ec-027ff2717ef4
2021-03-31 15:57:24 +00:00
contact
87407b262d go fmt
git-svn-id: file:///srv/svn/repo/suika/trunk@444 f0ae65fe-ee39-954e-97ec-027ff2717ef4
2021-01-10 21:48:58 +00:00
contact
e0ef0b2c01 Add in-memory message store
Uses an in-memory ring buffer.

Closes: https://todo.sr.ht/~emersion/soju/96

git-svn-id: file:///srv/svn/repo/suika/trunk@442 f0ae65fe-ee39-954e-97ec-027ff2717ef4
2021-01-04 16:18:30 +00:00