fix dependencies

This commit is contained in:
Lorenzo Venerandi 2024-12-14 01:56:22 +01:00
parent 5974f6eef7
commit 12f83f6286
30 changed files with 249 additions and 116 deletions

View File

@ -0,0 +1,130 @@
//go:build !wasm && !wasi && !wasip1 && !wasip2 && !wasm_unknown && !tinygo.wasm
// Code generated by wadge-bindgen-go DO NOT EDIT
package main
import (
gitea_rebus_ninja__lore__wasm___nats___stream___client__gen__wasmcloud__messaging__consumer "gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasmcloud/messaging/consumer"
gitea_rebus_ninja__lore__wasm___nats___stream___client__gen__wasmcloud__messaging__types "gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasmcloud/messaging/types"
github_com__bytecodealliance__wasm___tools___go__cm "github.com/bytecodealliance/wasm-tools-go/cm"
wadge "go.wasmcloud.dev/wadge"
"runtime"
"unsafe"
)
const _ string = runtime.Compiler
var _ unsafe.Pointer
//go:linkname wasmimport_Log gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/logging/logging.wasmimport_Log
func wasmimport_Log(level0 uint32, context0 *uint8, context1 uint32, message0 *uint8, message1 uint32) {
var __p runtime.Pinner
defer __p.Unpin()
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
return __instance.Call("wasi:logging/logging@0.1.0-draft", "log", func() unsafe.Pointer {
ptr := unsafe.Pointer(&level0)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(context0)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(&context1)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(message0)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(&message1)
__p.Pin(ptr)
return ptr
}())
}); __err != nil {
wadge.CurrentErrorHandler()(__err)
}
return
}
//go:linkname wasmimport_Publish gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasmcloud/messaging/consumer.wasmimport_Publish
func wasmimport_Publish(msg0 *uint8, msg1 uint32, msg2 *uint8, msg3 uint32, msg4 uint32, msg5 *uint8, msg6 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[string, struct{}, string]) {
var __p runtime.Pinner
defer __p.Unpin()
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
return __instance.Call("wasmcloud:messaging/consumer@0.2.0", "publish", func() unsafe.Pointer {
ptr := unsafe.Pointer(msg0)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(&msg1)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(msg2)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(&msg3)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(&msg4)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(msg5)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(&msg6)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(result)
__p.Pin(ptr)
return ptr
}())
}); __err != nil {
wadge.CurrentErrorHandler()(__err)
}
return
}
//go:linkname wasmimport_Request gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasmcloud/messaging/consumer.wasmimport_Request
func wasmimport_Request(subject0 *uint8, subject1 uint32, body0 *uint8, body1 uint32, timeoutMs0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[gitea_rebus_ninja__lore__wasm___nats___stream___client__gen__wasmcloud__messaging__consumer.BrokerMessageShape, gitea_rebus_ninja__lore__wasm___nats___stream___client__gen__wasmcloud__messaging__types.BrokerMessage, string]) {
var __p runtime.Pinner
defer __p.Unpin()
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
return __instance.Call("wasmcloud:messaging/consumer@0.2.0", "request", func() unsafe.Pointer {
ptr := unsafe.Pointer(subject0)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(&subject1)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(body0)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(&body1)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(&timeoutMs0)
__p.Pin(ptr)
return ptr
}(), func() unsafe.Pointer {
ptr := unsafe.Pointer(result)
__p.Pin(ptr)
return ptr
}())
}); __err != nil {
wadge.CurrentErrorHandler()(__err)
}
return
}

View File

@ -4,7 +4,7 @@
package stderr
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/streams"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/streams"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,7 +4,7 @@
package stdin
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/streams"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/streams"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,7 +4,7 @@
package stdout
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/streams"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/streams"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,7 +4,7 @@
package terminalstderr
import (
terminaloutput "gitea.rebus.ninja/lore/go-nats-client/gen/wasi/cli/terminal-output"
terminaloutput "gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/cli/terminal-output"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,7 +4,7 @@
package terminalstdin
import (
terminalinput "gitea.rebus.ninja/lore/go-nats-client/gen/wasi/cli/terminal-input"
terminalinput "gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/cli/terminal-input"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,7 +4,7 @@
package terminalstdout
import (
terminaloutput "gitea.rebus.ninja/lore/go-nats-client/gen/wasi/cli/terminal-output"
terminaloutput "gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/cli/terminal-output"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,7 +4,7 @@
package monotonicclock
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/poll"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/poll"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,7 +4,7 @@
package preopens
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/filesystem/types"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/filesystem/types"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -3,7 +3,7 @@
package types
import (
wallclock "gitea.rebus.ninja/lore/go-nats-client/gen/wasi/clocks/wall-clock"
wallclock "gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/clocks/wall-clock"
"github.com/bytecodealliance/wasm-tools-go/cm"
"unsafe"
)

View File

@ -4,8 +4,8 @@
package types
import (
wallclock "gitea.rebus.ninja/lore/go-nats-client/gen/wasi/clocks/wall-clock"
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/streams"
wallclock "gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/clocks/wall-clock"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/streams"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -3,7 +3,7 @@
package outgoinghandler
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/http/types"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/http/types"
"github.com/bytecodealliance/wasm-tools-go/cm"
"unsafe"
)

View File

@ -4,7 +4,7 @@
package outgoinghandler
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/http/types"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/http/types"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,10 +4,10 @@
package types
import (
monotonicclock "gitea.rebus.ninja/lore/go-nats-client/gen/wasi/clocks/monotonic-clock"
ioerror "gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/error"
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/poll"
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/streams"
monotonicclock "gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/clocks/monotonic-clock"
ioerror "gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/error"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/poll"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/streams"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,8 +4,8 @@
package streams
import (
ioerror "gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/error"
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/poll"
ioerror "gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/error"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/poll"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,7 +4,7 @@
package instancenetwork
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/sockets/network"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/sockets/network"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,8 +4,8 @@
package ipnamelookup
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/poll"
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/sockets/network"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/poll"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/sockets/network"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,8 +4,8 @@
package tcpcreatesocket
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/sockets/network"
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/sockets/tcp"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/sockets/network"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/sockets/tcp"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -3,7 +3,7 @@
package tcp
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/sockets/network"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/sockets/network"
"github.com/bytecodealliance/wasm-tools-go/cm"
"unsafe"
)

View File

@ -4,10 +4,10 @@
package tcp
import (
monotonicclock "gitea.rebus.ninja/lore/go-nats-client/gen/wasi/clocks/monotonic-clock"
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/poll"
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/streams"
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/sockets/network"
monotonicclock "gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/clocks/monotonic-clock"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/poll"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/streams"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/sockets/network"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,8 +4,8 @@
package udpcreatesocket
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/sockets/network"
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/sockets/udp"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/sockets/network"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/sockets/udp"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -3,7 +3,7 @@
package udp
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/sockets/network"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/sockets/network"
"github.com/bytecodealliance/wasm-tools-go/cm"
"unsafe"
)

View File

@ -4,8 +4,8 @@
package udp
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/poll"
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/sockets/network"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/io/poll"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/sockets/network"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -3,7 +3,7 @@
package consumer
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasmcloud/messaging/types"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasmcloud/messaging/types"
"github.com/bytecodealliance/wasm-tools-go/cm"
"unsafe"
)

View File

@ -4,7 +4,7 @@
package consumer
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasmcloud/messaging/types"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasmcloud/messaging/types"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -3,7 +3,7 @@
package handler
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasmcloud/messaging/types"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasmcloud/messaging/types"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

View File

@ -4,7 +4,7 @@
package handler
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasmcloud/messaging/types"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasmcloud/messaging/types"
)
// BrokerMessage represents the type alias "wasmcloud:messaging/handler@0.2.0#broker-message".

View File

@ -4,7 +4,7 @@
package reveal
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasmcloud/secrets/store"
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasmcloud/secrets/store"
"github.com/bytecodealliance/wasm-tools-go/cm"
)

3
go.mod
View File

@ -1,8 +1,9 @@
module gitea.rebus.ninja/lore/go-nats-client
module gitea.rebus.ninja/lore/wasm-nats-stream-client
go 1.23.0
require (
gitea.rebus.ninja/lore/go-nats-client v0.0.0-20241214003044-5974f6eef794
github.com/bytecodealliance/wasm-tools-go v0.3.2
go.wasmcloud.dev/component v0.0.5
go.wasmcloud.dev/wadge v0.7.0

2
go.sum
View File

@ -1,3 +1,5 @@
gitea.rebus.ninja/lore/go-nats-client v0.0.0-20241214003044-5974f6eef794 h1:9aKUG/OGg5CW8EOy1PnYm6vjOFEPRhT2j8QcQsl0tSU=
gitea.rebus.ninja/lore/go-nats-client v0.0.0-20241214003044-5974f6eef794/go.mod h1:VfOt4aVA8SlVMA2lqiBSw42jioWz+VjIztb2pCzZfFc=
github.com/bytecodealliance/wasm-tools-go v0.3.2 h1:LKni9PS8yCG5/A79L8tcTKthgf7WN5RZD83W1m6wEE0=
github.com/bytecodealliance/wasm-tools-go v0.3.2/go.mod h1:fdysX1+SiPxcIhdpg8TLhoxz23k28/5cQ0/L9J4mgig=
github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr4=