2024-12-14 00:30:44 +00:00
|
|
|
// Code generated by wit-bindgen-go. DO NOT EDIT.
|
|
|
|
|
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
2024-12-14 00:56:22 +00:00
|
|
|
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasmcloud/messaging/types"
|
2024-12-14 00:30:44 +00:00
|
|
|
"github.com/bytecodealliance/wasm-tools-go/cm"
|
|
|
|
)
|
|
|
|
|
|
|
|
func lift_OptionString(f0 uint32, f1 *uint8, f2 uint32) (v cm.Option[string]) {
|
|
|
|
if f0 == 0 {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return (cm.Option[string])(cm.Some[string](cm.LiftString[string]((*uint8)(f1), (uint32)(f2))))
|
|
|
|
}
|
|
|
|
|
|
|
|
func lift_BrokerMessage(f0 *uint8, f1 uint32, f2 *uint8, f3 uint32, f4 uint32, f5 *uint8, f6 uint32) (v types.BrokerMessage) {
|
|
|
|
v.Subject = cm.LiftString[string](f0, f1)
|
|
|
|
v.Body = cm.LiftList[cm.List[uint8]](f2, f3)
|
|
|
|
v.ReplyTo = lift_OptionString(f4, f5, f6)
|
|
|
|
return
|
|
|
|
}
|