2024-12-14 00:26:30 +00:00
|
|
|
//go:generate go run github.com/bytecodealliance/wasm-tools-go/cmd/wit-bindgen-go generate --world hello --out gen ./wit
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasmcloud/messaging/handler"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
handler.Exports.HandleMessage = handleMessage
|
|
|
|
}
|
|
|
|
|
|
|
|
// Since we don't run this program like a CLI, the `main` function is empty. Instead,
|
|
|
|
// we call the `handleRequest` function when an HTTP request is received.
|
|
|
|
func main() {}
|