Files
veilid/veilid-server/proto/veilid-client.capnp
John Smith 1b6864bf22 remove veilid-wasm project, too out of date
refactor state updates and formalize a VeilidState object
work on veilid-flutter api
2022-01-18 12:33:14 -05:00

47 lines
910 B
Cap'n Proto

@0xd29582d26b2fb073;
enum AttachmentState {
detached @0;
attaching @1;
attachedWeak @2;
attachedGood @3;
attachedStrong @4;
fullyAttached @5;
overAttached @6;
detaching @7;
}
struct Attachment {
state @0 :AttachmentState;
}
struct VeilidUpdate {
union {
attachment @0 :Attachment;
dummy @1 :Void;
}
}
struct VeilidState {
attachment @0 :Attachment;
}
interface Registration {}
interface VeilidServer {
register @0 (veilidClient: VeilidClient) -> (registration: Registration);
debug @1 (what: Text) -> (output: Text);
attach @2 ();
detach @3 ();
shutdown @4 ();
getState @5 () -> (state: VeilidState);
}
interface VeilidClient {
update @0 (veilidUpdate: VeilidUpdate);
logMessage @1 (message: Text);
}