-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(example): add keyvalue-inmemory provider
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com> real example Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
- Loading branch information
1 parent
9cbf0bf
commit ab66063
Showing
26 changed files
with
1,942 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
> [!WARNING] | ||
> Experimental! | ||
## Golang SDK for Providers | ||
## Golang SDK for Providers | ||
|
||
This is a experimenal SDK for writing wasmCloud providers in Go. | ||
|
||
An example can be found in the examples repo, under providers/inmemkv | ||
An example can be found in [cmd/keyvalue-inmemory](./cmd/keyvalue-inmemory/) which implements `wasi:keyvalue@0.2.0-draft`. | ||
|
||
A demo can be found at | ||
A demo can be found at | ||
`ghcr.io/jordan-rash/kv-provider:v0.0.3` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
keyvalue-inmemory | ||
keyvalue-inmemory.par.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Keyvalue inmemory golang provider | ||
|
||
This provider implements `wasi:keyvalue/store@0.2.0-draft`. | ||
|
||
## Notable files | ||
|
||
- [main.go](./main.go) is a simple binary that sets up an errGroup to handle running the provider's primary requirements: executing as a standaline binary based on data received on stdin, handling RPC and connecting to a wasmCloud lattice. | ||
- [keyvalue.go](./keyvalue.go) implements the required functions to conform to `wasi:keyvalue/store`. If the functions as specified in the [WIT](./wit/deps/keyvalue/store.wit) are not implemented, this provider will fail to build. |
Oops, something went wrong.