mirror of https://github.com/dapr/go-sdk.git
|
||
---|---|---|
bin | ||
client | ||
dapr/proto | ||
example | ||
.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 serving
app a client
app that uses this SDK to invoke dapr API for state and events, serving
app for service to service invocation, and a simple HTTP binding to illustrate output binding. To run the example:
- Start the
serving
app in theexample/serving
directory
cd example/serving
dapr run --app-id serving --protocol grpc --app-port 4000 go run main.go
- Start the
client
app in theexample/client
directory
cd example/client
dapr run --app-id caller go run main.go --components-path ./components