This is the Dapr SDK for Go, based on the auto-generated proto client.
For more info on Dapr and gRPC, visit this link.
go get github.com/dapr/go-sdk
The example
folder contains a Dapr enabled app that receives events (client), and a caller that invokes the Dapr API (caller).
- Run the client
cd example/client
dapr run --app-id client --protocol grpc --app-port 4000 go run main.go
- Run the caller
cd example/caller
dapr run --app-id caller go run main.go
Note: If you don't setup a Dapr binding, expect the error message rpc error: code = Unknown desc = ERR_INVOKE_OUTPUT_BINDING: couldn't find output binding storage