wasm-nats-producer-client/gen/wasmcloud/messaging/handler/handler.exports.go
Lorenzo Venerandi 8cd67e00a2 maybe fixed
2024-12-16 20:34:52 +01:00

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])
}