2021-11-22 16:28:30 +00:00
|
|
|
@0xd29582d26b2fb073;
|
|
|
|
|
2022-07-01 16:13:52 +00:00
|
|
|
struct ApiResult {
|
|
|
|
union {
|
|
|
|
ok @0 :Text;
|
|
|
|
err @1 :Text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-22 16:28:30 +00:00
|
|
|
interface Registration {}
|
|
|
|
|
|
|
|
interface VeilidServer {
|
2022-06-08 01:31:05 +00:00
|
|
|
register @0 (veilidClient: VeilidClient) -> (registration: Registration, state: Text);
|
2022-07-01 16:13:52 +00:00
|
|
|
debug @1 (command: Text) -> (result :ApiResult);
|
|
|
|
attach @2 () -> (result :ApiResult);
|
|
|
|
detach @3 () -> (result :ApiResult);
|
2022-01-18 17:33:14 +00:00
|
|
|
shutdown @4 ();
|
2022-07-01 16:13:52 +00:00
|
|
|
getState @5 () -> (result :ApiResult);
|
|
|
|
changeLogLevel @6 (layer: Text, logLevel: Text) -> (result :ApiResult);
|
2021-11-22 16:28:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
interface VeilidClient {
|
2022-06-08 01:31:05 +00:00
|
|
|
update @0 (veilidUpdate: Text);
|
2021-11-22 16:28:30 +00:00
|
|
|
}
|