diff --git a/bindings.wadge.go b/bindings.wadge.go index e69de29..131cda7 100644 --- a/bindings.wadge.go +++ b/bindings.wadge.go @@ -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 +} diff --git a/gen/wasi/cli/stderr/stderr.wit.go b/gen/wasi/cli/stderr/stderr.wit.go index 70d1983..9ace8ea 100644 --- a/gen/wasi/cli/stderr/stderr.wit.go +++ b/gen/wasi/cli/stderr/stderr.wit.go @@ -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" ) diff --git a/gen/wasi/cli/stdin/stdin.wit.go b/gen/wasi/cli/stdin/stdin.wit.go index 149bda5..0dc57a3 100644 --- a/gen/wasi/cli/stdin/stdin.wit.go +++ b/gen/wasi/cli/stdin/stdin.wit.go @@ -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" ) diff --git a/gen/wasi/cli/stdout/stdout.wit.go b/gen/wasi/cli/stdout/stdout.wit.go index 41f5c40..392ffc5 100644 --- a/gen/wasi/cli/stdout/stdout.wit.go +++ b/gen/wasi/cli/stdout/stdout.wit.go @@ -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" ) diff --git a/gen/wasi/cli/terminal-stderr/terminal-stderr.wit.go b/gen/wasi/cli/terminal-stderr/terminal-stderr.wit.go index dcac516..a372318 100644 --- a/gen/wasi/cli/terminal-stderr/terminal-stderr.wit.go +++ b/gen/wasi/cli/terminal-stderr/terminal-stderr.wit.go @@ -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" ) diff --git a/gen/wasi/cli/terminal-stdin/terminal-stdin.wit.go b/gen/wasi/cli/terminal-stdin/terminal-stdin.wit.go index cf09da6..647bc29 100644 --- a/gen/wasi/cli/terminal-stdin/terminal-stdin.wit.go +++ b/gen/wasi/cli/terminal-stdin/terminal-stdin.wit.go @@ -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" ) diff --git a/gen/wasi/cli/terminal-stdout/terminal-stdout.wit.go b/gen/wasi/cli/terminal-stdout/terminal-stdout.wit.go index 47e5e80..f272d56 100644 --- a/gen/wasi/cli/terminal-stdout/terminal-stdout.wit.go +++ b/gen/wasi/cli/terminal-stdout/terminal-stdout.wit.go @@ -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" ) diff --git a/gen/wasi/clocks/monotonic-clock/monotonic-clock.wit.go b/gen/wasi/clocks/monotonic-clock/monotonic-clock.wit.go index d055e8b..8e16b32 100644 --- a/gen/wasi/clocks/monotonic-clock/monotonic-clock.wit.go +++ b/gen/wasi/clocks/monotonic-clock/monotonic-clock.wit.go @@ -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" ) diff --git a/gen/wasi/filesystem/preopens/preopens.wit.go b/gen/wasi/filesystem/preopens/preopens.wit.go index d802e6b..ae5338f 100644 --- a/gen/wasi/filesystem/preopens/preopens.wit.go +++ b/gen/wasi/filesystem/preopens/preopens.wit.go @@ -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" ) diff --git a/gen/wasi/filesystem/types/abi.go b/gen/wasi/filesystem/types/abi.go index 827162b..9050d5f 100644 --- a/gen/wasi/filesystem/types/abi.go +++ b/gen/wasi/filesystem/types/abi.go @@ -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" ) diff --git a/gen/wasi/filesystem/types/types.wit.go b/gen/wasi/filesystem/types/types.wit.go index 98d6fec..3e6e6cf 100644 --- a/gen/wasi/filesystem/types/types.wit.go +++ b/gen/wasi/filesystem/types/types.wit.go @@ -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" ) diff --git a/gen/wasi/http/outgoing-handler/abi.go b/gen/wasi/http/outgoing-handler/abi.go index bb09ea4..8452bcb 100644 --- a/gen/wasi/http/outgoing-handler/abi.go +++ b/gen/wasi/http/outgoing-handler/abi.go @@ -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" ) diff --git a/gen/wasi/http/outgoing-handler/outgoing-handler.wit.go b/gen/wasi/http/outgoing-handler/outgoing-handler.wit.go index c5262d7..c6f3965 100644 --- a/gen/wasi/http/outgoing-handler/outgoing-handler.wit.go +++ b/gen/wasi/http/outgoing-handler/outgoing-handler.wit.go @@ -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" ) diff --git a/gen/wasi/http/types/types.wit.go b/gen/wasi/http/types/types.wit.go index e10df17..6e0762a 100644 --- a/gen/wasi/http/types/types.wit.go +++ b/gen/wasi/http/types/types.wit.go @@ -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" ) diff --git a/gen/wasi/io/streams/streams.wit.go b/gen/wasi/io/streams/streams.wit.go index a995afc..3f30a0a 100644 --- a/gen/wasi/io/streams/streams.wit.go +++ b/gen/wasi/io/streams/streams.wit.go @@ -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" ) diff --git a/gen/wasi/sockets/instance-network/instance-network.wit.go b/gen/wasi/sockets/instance-network/instance-network.wit.go index a5cf09e..8870dd0 100644 --- a/gen/wasi/sockets/instance-network/instance-network.wit.go +++ b/gen/wasi/sockets/instance-network/instance-network.wit.go @@ -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" ) diff --git a/gen/wasi/sockets/ip-name-lookup/ip-name-lookup.wit.go b/gen/wasi/sockets/ip-name-lookup/ip-name-lookup.wit.go index 3963957..41eb343 100644 --- a/gen/wasi/sockets/ip-name-lookup/ip-name-lookup.wit.go +++ b/gen/wasi/sockets/ip-name-lookup/ip-name-lookup.wit.go @@ -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" ) diff --git a/gen/wasi/sockets/tcp-create-socket/tcp-create-socket.wit.go b/gen/wasi/sockets/tcp-create-socket/tcp-create-socket.wit.go index ff0aa44..13c2bd1 100644 --- a/gen/wasi/sockets/tcp-create-socket/tcp-create-socket.wit.go +++ b/gen/wasi/sockets/tcp-create-socket/tcp-create-socket.wit.go @@ -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" ) diff --git a/gen/wasi/sockets/tcp/abi.go b/gen/wasi/sockets/tcp/abi.go index 6f7b0dc..658fc51 100644 --- a/gen/wasi/sockets/tcp/abi.go +++ b/gen/wasi/sockets/tcp/abi.go @@ -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" ) diff --git a/gen/wasi/sockets/tcp/tcp.wit.go b/gen/wasi/sockets/tcp/tcp.wit.go index 452de0e..1456c57 100644 --- a/gen/wasi/sockets/tcp/tcp.wit.go +++ b/gen/wasi/sockets/tcp/tcp.wit.go @@ -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" ) diff --git a/gen/wasi/sockets/udp-create-socket/udp-create-socket.wit.go b/gen/wasi/sockets/udp-create-socket/udp-create-socket.wit.go index 5f3f801..a454798 100644 --- a/gen/wasi/sockets/udp-create-socket/udp-create-socket.wit.go +++ b/gen/wasi/sockets/udp-create-socket/udp-create-socket.wit.go @@ -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" ) diff --git a/gen/wasi/sockets/udp/abi.go b/gen/wasi/sockets/udp/abi.go index 3983f05..dd50e11 100644 --- a/gen/wasi/sockets/udp/abi.go +++ b/gen/wasi/sockets/udp/abi.go @@ -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" ) diff --git a/gen/wasi/sockets/udp/udp.wit.go b/gen/wasi/sockets/udp/udp.wit.go index c7529c7..031ac15 100644 --- a/gen/wasi/sockets/udp/udp.wit.go +++ b/gen/wasi/sockets/udp/udp.wit.go @@ -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" ) diff --git a/gen/wasmcloud/messaging/consumer/abi.go b/gen/wasmcloud/messaging/consumer/abi.go index 3a4c422..918e728 100644 --- a/gen/wasmcloud/messaging/consumer/abi.go +++ b/gen/wasmcloud/messaging/consumer/abi.go @@ -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" ) diff --git a/gen/wasmcloud/messaging/consumer/consumer.wit.go b/gen/wasmcloud/messaging/consumer/consumer.wit.go index 408a28f..6985dcc 100644 --- a/gen/wasmcloud/messaging/consumer/consumer.wit.go +++ b/gen/wasmcloud/messaging/consumer/consumer.wit.go @@ -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" ) diff --git a/gen/wasmcloud/messaging/handler/abi.go b/gen/wasmcloud/messaging/handler/abi.go index b7bc740..caa55bd 100644 --- a/gen/wasmcloud/messaging/handler/abi.go +++ b/gen/wasmcloud/messaging/handler/abi.go @@ -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" ) diff --git a/gen/wasmcloud/messaging/handler/handler.wit.go b/gen/wasmcloud/messaging/handler/handler.wit.go index fdfec7f..b1d69ff 100644 --- a/gen/wasmcloud/messaging/handler/handler.wit.go +++ b/gen/wasmcloud/messaging/handler/handler.wit.go @@ -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". diff --git a/gen/wasmcloud/secrets/reveal/reveal.wit.go b/gen/wasmcloud/secrets/reveal/reveal.wit.go index e642640..76e50ac 100644 --- a/gen/wasmcloud/secrets/reveal/reveal.wit.go +++ b/gen/wasmcloud/secrets/reveal/reveal.wit.go @@ -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" ) diff --git a/go.mod b/go.mod index 1b2bd5f..e64d9b2 100644 --- a/go.mod +++ b/go.mod @@ -1,25 +1,26 @@ -module gitea.rebus.ninja/lore/go-nats-client - -go 1.23.0 - -require ( - github.com/bytecodealliance/wasm-tools-go v0.3.2 - go.wasmcloud.dev/component v0.0.5 - go.wasmcloud.dev/wadge v0.7.0 -) - -require ( - github.com/coreos/go-semver v0.3.1 // indirect - github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 // indirect - github.com/klauspost/compress v1.17.11 // indirect - github.com/opencontainers/go-digest v1.0.0 // indirect - github.com/regclient/regclient v0.8.0 // indirect - github.com/sirupsen/logrus v1.9.3 // indirect - github.com/ulikunitz/xz v0.5.12 // indirect - github.com/urfave/cli/v3 v3.0.0-beta1 // indirect - go.bytecodealliance.org v0.4.1 // indirect - golang.org/x/mod v0.22.0 // indirect - golang.org/x/sync v0.10.0 // indirect - golang.org/x/sys v0.28.0 // indirect - golang.org/x/tools v0.28.0 // indirect -) +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 +) + +require ( + github.com/coreos/go-semver v0.3.1 // indirect + github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 // indirect + github.com/klauspost/compress v1.17.11 // indirect + github.com/opencontainers/go-digest v1.0.0 // indirect + github.com/regclient/regclient v0.8.0 // indirect + github.com/sirupsen/logrus v1.9.3 // indirect + github.com/ulikunitz/xz v0.5.12 // indirect + github.com/urfave/cli/v3 v3.0.0-beta1 // indirect + go.bytecodealliance.org v0.4.1 // indirect + golang.org/x/mod v0.22.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/tools v0.28.0 // indirect +) diff --git a/go.sum b/go.sum index 1776f8c..af3d164 100644 --- a/go.sum +++ b/go.sum @@ -1,52 +1,54 @@ -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= -github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 h1:UhxFibDNY/bfvqU5CAUmr9zpesgbU6SWc8/B4mflAE4= -github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= -github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= -github.com/olareg/olareg v0.1.1 h1:Ui7q93zjcoF+U9U71sgqgZWByDoZOpqHitUXEu2xV+g= -github.com/olareg/olareg v0.1.1/go.mod h1:w8NP4SWrHHtxsFaUiv1lnCnYPm4sN1seCd2h7FK/dc0= -github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= -github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/regclient/regclient v0.8.0 h1:xNAMDlADcyMvFAlGXoqDOxlSUBG4mqWBFgjQqVTP8Og= -github.com/regclient/regclient v0.8.0/go.mod h1:h9+Y6dBvqBkdlrj6EIhbTOv0xUuIFl7CdI1bZvEB42g= -github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= -github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= -github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= -github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/ulikunitz/xz v0.5.12 h1:37Nm15o69RwBkXM0J6A5OlE67RZTfzUxTj8fB3dfcsc= -github.com/ulikunitz/xz v0.5.12/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= -github.com/urfave/cli/v3 v3.0.0-beta1 h1:6DTaaUarcM0wX7qj5Hcvs+5Dm3dyUTBbEwIWAjcw9Zg= -github.com/urfave/cli/v3 v3.0.0-beta1/go.mod h1:FnIeEMYu+ko8zP1F9Ypr3xkZMIDqW3DR92yUtY39q1Y= -go.bytecodealliance.org v0.4.1 h1:Y3Nnz+C061i9Hw4qQlSkZTg3IBTsTLC92+sdh4xCADQ= -go.bytecodealliance.org v0.4.1/go.mod h1:jxAxqtTxs+6Q2q6bQnWa/lF+Q+2/LkdbqIgNJYxEmFA= -go.wasmcloud.dev/component v0.0.5 h1:z9+fq1CJKm/yom33ctd5wfo8TVunm5IaI7EJdY2i9hk= -go.wasmcloud.dev/component v0.0.5/go.mod h1:PvVHQ7Xp8D9kZnVB3fm8lqWAcC6Yxd7CI/snXZUAG8E= -go.wasmcloud.dev/wadge v0.7.0 h1:eUt0jODh6xQ5HEof1PFSgDp+evrNs+lD1LYCYeRR2Cg= -go.wasmcloud.dev/wadge v0.7.0/go.mod h1:SMnPSWZFTkXyUX0GJ11mcdc7ZoMITtbAlPLlpvGJd4M= -golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= -golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= -golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= -golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= -golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/tools v0.28.0 h1:WuB6qZ4RPCQo5aP3WdKZS7i595EdWqWR8vqJTlwTVK8= -golang.org/x/tools v0.28.0/go.mod h1:dcIOrVd3mfQKTgrDVQHqCPMWy6lnhfhtX3hLXYVLfRw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +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= +github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 h1:UhxFibDNY/bfvqU5CAUmr9zpesgbU6SWc8/B4mflAE4= +github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= +github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= +github.com/olareg/olareg v0.1.1 h1:Ui7q93zjcoF+U9U71sgqgZWByDoZOpqHitUXEu2xV+g= +github.com/olareg/olareg v0.1.1/go.mod h1:w8NP4SWrHHtxsFaUiv1lnCnYPm4sN1seCd2h7FK/dc0= +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/regclient/regclient v0.8.0 h1:xNAMDlADcyMvFAlGXoqDOxlSUBG4mqWBFgjQqVTP8Og= +github.com/regclient/regclient v0.8.0/go.mod h1:h9+Y6dBvqBkdlrj6EIhbTOv0xUuIFl7CdI1bZvEB42g= +github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= +github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/ulikunitz/xz v0.5.12 h1:37Nm15o69RwBkXM0J6A5OlE67RZTfzUxTj8fB3dfcsc= +github.com/ulikunitz/xz v0.5.12/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/urfave/cli/v3 v3.0.0-beta1 h1:6DTaaUarcM0wX7qj5Hcvs+5Dm3dyUTBbEwIWAjcw9Zg= +github.com/urfave/cli/v3 v3.0.0-beta1/go.mod h1:FnIeEMYu+ko8zP1F9Ypr3xkZMIDqW3DR92yUtY39q1Y= +go.bytecodealliance.org v0.4.1 h1:Y3Nnz+C061i9Hw4qQlSkZTg3IBTsTLC92+sdh4xCADQ= +go.bytecodealliance.org v0.4.1/go.mod h1:jxAxqtTxs+6Q2q6bQnWa/lF+Q+2/LkdbqIgNJYxEmFA= +go.wasmcloud.dev/component v0.0.5 h1:z9+fq1CJKm/yom33ctd5wfo8TVunm5IaI7EJdY2i9hk= +go.wasmcloud.dev/component v0.0.5/go.mod h1:PvVHQ7Xp8D9kZnVB3fm8lqWAcC6Yxd7CI/snXZUAG8E= +go.wasmcloud.dev/wadge v0.7.0 h1:eUt0jODh6xQ5HEof1PFSgDp+evrNs+lD1LYCYeRR2Cg= +go.wasmcloud.dev/wadge v0.7.0/go.mod h1:SMnPSWZFTkXyUX0GJ11mcdc7ZoMITtbAlPLlpvGJd4M= +golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= +golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/tools v0.28.0 h1:WuB6qZ4RPCQo5aP3WdKZS7i595EdWqWR8vqJTlwTVK8= +golang.org/x/tools v0.28.0/go.mod h1:dcIOrVd3mfQKTgrDVQHqCPMWy6lnhfhtX3hLXYVLfRw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=