commit 6476a1754a03268f96c4b1d66246a38310bc3fa4 Author: Quixos Template Publisher Date: Sat Jan 1 00:00:00 2000 +0000 Export template source from 256e3c7854cda0960717cc1cdc49a6ef02fb4c0d:quixos-instance/interfaces/event-stream diff --git a/.quixos-template-source.json b/.quixos-template-source.json new file mode 100644 index 0000000..ccfa336 --- /dev/null +++ b/.quixos-template-source.json @@ -0,0 +1,4 @@ +{ + "monorepoCommit": "256e3c7854cda0960717cc1cdc49a6ef02fb4c0d", + "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..e5f4605 --- /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 "256e3c7854cda0960717cc1cdc49a6ef02fb4c0d"; } + +}