map-nats-kv

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 11 Imported by: 0

README

map-nats-kv

A nats-kv provider for wasmcloud written in go, supports CRUD and listKeys

Building

Prerequisites:

  1. Go toolchain
  2. wit-bindgen-wrpc 0.7.0, download the release binary
  3. wash
go generate ./...
go build .

Alternatively, you can generate, build and package this provider in one step:

wash build

You can build the included test component with wash build -p ./component.

Running to test

Prerequisites:

  1. Go toolchain
  2. nats-server
  3. nats-cli

Running as an application

You can deploy this provider, along with a component for testing, by deploying the wadm.yaml application. Make sure to build the component with wash build.

# Build the component
cd component
wash build

# Return to the provider directory
cd ..

# Launch wasmCloud in the background
wash up -d
# Deploy the application
wash app deploy ./wadm.yaml

TODO:

Add support for kv watch, wit is there but not implemented

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL