diff --git a/wadm.yaml b/wadm.yaml index e3c8eec..f211d16 100644 --- a/wadm.yaml +++ b/wadm.yaml @@ -3,22 +3,22 @@ kind: Application metadata: name: go-data-stream annotations: - description: 'HTTP hello world demo in Golang (TinyGo), using the WebAssembly Component Model and WebAssembly Interfaces Types (WIT)' - wasmcloud.dev/authors: wasmCloud team - wasmcloud.dev/source-url: https://github.com/wasmCloud/wasmCloud/blob/main/examples/golang/components/http-hello-world/wadm.yaml - wasmcloud.dev/readme-md-url: https://github.com/wasmCloud/wasmCloud/blob/main/examples/golang/components/http-hello-world/README.md - wasmcloud.dev/homepage: https://github.com/wasmCloud/wasmCloud/tree/main/examples/golang/components/http-hello-world + description: 'Data stream processing using NATS topic in Golang (TinyGo), using the WebAssembly Component Model and WebAssembly Interfaces Types (WIT)' + wasmcloud.dev/authors: Lorenzo Venerandi + wasmcloud.dev/source-url: https://gitea.rebus.ninja/lore/wasm-nats-stream-client.git/wadm.yaml + wasmcloud.dev/readme-md-url: https://gitea.rebus.ninja/lore/wasm-nats-stream-client.git/README.md + wasmcloud.dev/homepage: https://gitea.rebus.ninja/lore/wasm-nats-stream-client.git wasmcloud.dev/categories: | - http,outgoing-http,http-server,tinygo,golang,example + stream-processing,nats-client,tinygo,golang spec: components: - - name: echo + - name: client type: component properties: # To use the locally compiled code in this folder, use the line below instead after running `wash build`: # image: file://./build/echo_messaging_s.wasm - image: gitea.rebus.ninja/lore/go-nats-client:1.0.1 - id: echo + image: gitea.rebus.ninja/lore/wasm-nats-stream-client:1.0.1 + id: stream config: - name: nats-topic properties: @@ -29,8 +29,12 @@ spec: properties: instances: 1 spread: - - name: edge + - name: cloud weight: 100 + requirements: + host-type: cloud + - name: edge + weight: 0 requirements: host-type: edge # Establish a unidirectional link to the messaging capability provider (powered by NATS), @@ -65,19 +69,23 @@ spec: # so that so the provider can deliver messages to the component (by invoking the wasmcloud:messaging/handler interface) . - type: link properties: - target: echo + target: client namespace: wasmcloud package: messaging interfaces: [handler] source_config: - name: simple-subscription properties: - subscriptions: wasmcloud.echo + subscriptions: test.source - type: spreadscaler properties: instances: 1 spread: - - name: edge + - name: cloud weight: 100 requirements: - host-type: edge + host-type: cloud + - name: edge + weight: 0 + requirements: + host-type: edge \ No newline at end of file