12 lines
283 B
Plaintext
12 lines
283 B
Plaintext
|
|
package wasmeld:service@0.1.0;
|
||
|
|
|
||
|
|
world service-component {
|
||
|
|
variant service-error {
|
||
|
|
init-failed(string),
|
||
|
|
call-failed(string),
|
||
|
|
}
|
||
|
|
|
||
|
|
export init: func(config: list<u8>) -> result<_, service-error>;
|
||
|
|
export invoke: func(input: list<u8>) -> result<list<u8>, service-error>;
|
||
|
|
}
|