mirror of https://github.com/dapr/go-sdk.git
|
|
||
|---|---|---|
| .github | ||
| client | ||
| dapr/proto | ||
| example | ||
| vendor | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| Readme.md | ||
| go.mod | ||
| go.sum | ||
Readme.md
dapr SDK for Go
This is the dapr SDK (client) for Go.
Installation
go get github.com/dapr/go-sdk
Usage
The example folder contains a dapr enabled app that receives events (serving), and a client app that uses this SDK to invoke dapr API (client).
- Run the serving app
cd example/serving
dapr run --app-id serving --protocol grpc --app-port 4000 go run main.go
- Run the caller
cd example/client
dapr run --app-id caller go run main.go
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