code.icb4dc0.de/buildr/wasi-module-sdk-go@v0.0.0-20230524201105-cc52d195017b/api/README.md (about) 1 # WASI host - module data exchange 2 3 The module SDK re-uses a subset of protobuf messages also used in the remote protocol except for the `TaskOutput` message because WASI handles `STDOUT`/`STDERR` already. 4 5 The protobuf messages are not used with gRPC but only as binary encoded messages shared via pointers in the WASI modules memory. 6 7 The following 'RPC' calls are supported: 8 9 - `log_msg` accepting a pointer and an offset to a `TaskLog` message - won't return anything 10 - `get_state` accepting a pointer and an offset to a `GetStateRequest` message, returning a 64-bit integer (32-bit pointer, 32-bit size) to a `GetStateResponse` message 11 - `set_state` accepting a pointer and an offset to a `SetState` message, returning a 64-bit integer (32-bit pointer, 32-bit size) to a `Result` message optionally containing error details