mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-20 15:11:45 +03:00
WIT cleanups
This commit is contained in:
parent
b536548831
commit
ca8c9e3ba0
@ -1,7 +1,6 @@
|
||||
interface chess {
|
||||
/// Our "chess protocol" request/response format. We'll always serialize these
|
||||
/// to a byte vector and send them over IPC.
|
||||
|
||||
variant request {
|
||||
/// lazy-load-blob: none.
|
||||
new-game(new-game-request),
|
||||
|
@ -7,24 +7,29 @@ interface contacts {
|
||||
}
|
||||
|
||||
variant request {
|
||||
/// requires ReadNameOnly capability
|
||||
/// lazy-load-blob: none.
|
||||
get-names, // requires read-names-only
|
||||
get-names,
|
||||
/// requires Read capability
|
||||
/// lazy-load-blob: none.
|
||||
get-all-contacts, // requires read
|
||||
get-all-contacts,
|
||||
/// requires Read capability
|
||||
/// lazy-load-blob: none.
|
||||
get-contact(string), // requires read
|
||||
get-contact(string),
|
||||
/// requires Add capability
|
||||
/// lazy-load-blob: none.
|
||||
add-contact(string),
|
||||
/// requires Add capability
|
||||
/// lazy-load-blob: none.
|
||||
add-contact(string), // requires add
|
||||
/// tuple<node, field, value>
|
||||
///
|
||||
add-field(tuple<string, string, string>),
|
||||
/// requires Remove capability
|
||||
/// lazy-load-blob: none.
|
||||
add-field(tuple<string, string, string>), // requires add
|
||||
remove-contact(string),
|
||||
/// requires Remove capability
|
||||
/// lazy-load-blob: none.
|
||||
remove-contact(string), // requires remove
|
||||
/// tuple<node, field>
|
||||
///
|
||||
/// lazy-load-blob: none.
|
||||
remove-field(tuple<string, string>), // requires remove
|
||||
remove-field(tuple<string, string>),
|
||||
}
|
||||
|
||||
variant response {
|
||||
@ -43,7 +48,6 @@ interface contacts {
|
||||
/// lazy-load-blob: none.
|
||||
remove-field,
|
||||
/// any failed request will receive this response
|
||||
///
|
||||
/// lazy-load-blob: none.
|
||||
err(string),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user