18 lines
575 B
Go
18 lines
575 B
Go
|
// Code generated by wit-bindgen-go. DO NOT EDIT.
|
||
|
|
||
|
package handler
|
||
|
|
||
|
import (
|
||
|
"github.com/bytecodealliance/wasm-tools-go/cm"
|
||
|
)
|
||
|
|
||
|
// Exports represents the caller-defined exports from "wasmcloud:messaging/handler@0.2.0".
|
||
|
var Exports struct {
|
||
|
// HandleMessage represents the caller-defined, exported function "handle-message".
|
||
|
//
|
||
|
// Callback handled to invoke a function when a message is received from a subscription
|
||
|
//
|
||
|
// handle-message: func(msg: broker-message) -> result<_, string>
|
||
|
HandleMessage func(msg BrokerMessage) (result cm.Result[string, struct{}, string])
|
||
|
}
|