api and log refactor
This commit is contained in:
@@ -1,20 +1,24 @@
|
||||
@0xd29582d26b2fb073;
|
||||
|
||||
struct ApiResult {
|
||||
union {
|
||||
ok @0 :Text;
|
||||
err @1 :Text;
|
||||
}
|
||||
}
|
||||
|
||||
interface Registration {}
|
||||
|
||||
interface VeilidServer {
|
||||
|
||||
register @0 (veilidClient: VeilidClient) -> (registration: Registration, state: Text);
|
||||
debug @1 (what: Text) -> (output: Text);
|
||||
|
||||
attach @2 ();
|
||||
detach @3 ();
|
||||
debug @1 (command: Text) -> (result :ApiResult);
|
||||
attach @2 () -> (result :ApiResult);
|
||||
detach @3 () -> (result :ApiResult);
|
||||
shutdown @4 ();
|
||||
getState @5 () -> (state: Text);
|
||||
getState @5 () -> (result :ApiResult);
|
||||
changeLogLevel @6 (layer: Text, logLevel: Text) -> (result :ApiResult);
|
||||
}
|
||||
|
||||
interface VeilidClient {
|
||||
|
||||
update @0 (veilidUpdate: Text);
|
||||
|
||||
}
|
Reference in New Issue
Block a user