generated from WebAssembly/wasi-proposal-template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(*): add semicolons to all the interfaces
Signed-off-by: Jiaxiao Zhou (Mossaka) <[email protected]>
- Loading branch information
Showing
5 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
interface messaging-guest { | ||
use messaging-types.{message, guest-configuration, error} | ||
use messaging-types.{message, guest-configuration, error}; | ||
|
||
/// Returns the list of channels (and extension metadata within guest-configuration) that | ||
/// this component should subscribe to and be handled by the subsequent handler within guest-configuration | ||
configure: func() -> result<guest-configuration, error> | ||
configure: func() -> result<guest-configuration, error>; | ||
|
||
/// Whenever this guest receives a message in one of the subscribed channels, the message is sent to this handler | ||
handler: func(ms: list<message>) -> result<_, error> | ||
handler: func(ms: list<message>) -> result<_, error>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package wasi:messaging | ||
package wasi:messaging; | ||
|
||
world messaging { | ||
import producer | ||
import consumer | ||
import producer; | ||
import consumer; | ||
|
||
export messaging-guest | ||
export messaging-guest; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
interface producer { | ||
use messaging-types.{client, channel, message, error} | ||
use messaging-types.{client, channel, message, error}; | ||
|
||
send: func(c: client, ch: channel, m: list<message>) -> result<_, error> | ||
send: func(c: client, ch: channel, m: list<message>) -> result<_, error>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters