wasi-module-sdk-go/api
2023-05-08 15:21:31 +02:00
..
rpc/v1 feat: initial draft of SDK 2023-05-08 15:21:31 +02:00
buf.yaml feat: initial draft of SDK 2023-05-08 15:21:31 +02:00
README.md feat: initial draft of SDK 2023-05-08 15:21:31 +02:00

WASI host - module data exchange

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.

The protobuf messages are not used with gRPC but only as binary encoded messages shared via pointers in the WASI modules memory.

The following 'RPC' calls are supported:

  • log_msg accepting a pointer and an offset to a TaskLog message - won't return anything
  • 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
  • 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