Documentation ¶
Overview ¶
Package wasm provides WebAssembly serverless function runtimes.
Package wasm provides WebAssembly serverless function runtimes.
Package wasm provides WebAssembly serverless function runtimes.
Package wasm provides WebAssembly serverless function runtimes.
Index ¶
Constants ¶
View Source
const ( WasmFuncInit = "yomo_init" WasmFuncObserveDataTag = "yomo_observe_datatag" WasmFuncLoadInput = "yomo_load_input" WasmFuncDumpOutput = "yomo_dump_output" WasmFuncHandler = "yomo_handler" )
Define wasm import/export function names
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime interface { // Init loads the wasm file, and initialize the runtime environment Init(wasmFile string) error // GetObserveDataTags returns observed datatags of the wasm sfn GetObserveDataTags() []frame.Tag // RunHandler runs the wasm application (request -> response mode) RunHandler(data []byte) (frame.Tag, []byte, error) // Close releases all the resources related to the runtime Close() error }
Runtime is the abstract interface for wasm runtime
func NewRuntime ¶
NewRuntime returns a specific wasm runtime instance according to the type parameter
Click to show internal directories.
Click to hide internal directories.