commit 3a57e5c9d9492b323b1a3f434205d6246d252455 Author: Quixos Template Publisher Date: Sat Jan 1 00:00:00 2000 +0000 Export template source from 3b0f7dd036b6fda9e35c6af7030f0317b763e1d0:quixos-instance/interfaces/event-stream diff --git a/.quixos-template-source.json b/.quixos-template-source.json new file mode 100644 index 0000000..cf21477 --- /dev/null +++ b/.quixos-template-source.json @@ -0,0 +1,4 @@ +{ + "monorepoCommit": "3b0f7dd036b6fda9e35c6af7030f0317b763e1d0", + "sourcePath": "quixos-instance/interfaces/event-stream" +} diff --git a/interface.qx b/interface.qx new file mode 100644 index 0000000..0607317 --- /dev/null +++ b/interface.qx @@ -0,0 +1,13 @@ +// Required server support; a checked installed implementation may additionally predict locally. +interface EventStream id "interface:org.quixos.events:stream" revision "interface:org.quixos.events:stream@1" { + operation publish id "events:publish" : Payload -> record {publication:string;} { + call id "events:publish:call" execution transaction; + } + queryable value head id "events:head" : optional { + get id "events:head:get" execution snapshot; + } + operation readPage id "events:read-page" : record {after:optional;limit:uint32;} + -> record {entries:list;next:optional;asOfHead:optional;} { + call id "events:read-page:call" execution snapshot; + } +} diff --git a/quixos.lock b/quixos.lock new file mode 100644 index 0000000..36217f7 --- /dev/null +++ b/quixos.lock @@ -0,0 +1,4 @@ +quixos-lock version 1 { + quixos source { repository "https://gitea.internal.quixos.org/quixos/quixos.git"; commit "3b0f7dd036b6fda9e35c6af7030f0317b763e1d0"; } + +}