Dapr SDK for go
Go to file
Mark Chmarny 39af2eba1e tests infra, naive tests implemented 2020-06-18 06:29:04 -07:00
.github/workflows initial tests, test on push, makefile 2020-06-17 07:07:14 -07:00
bin protogen cleanup 2020-06-13 07:43:34 -07:00
client tests infra, naive tests implemented 2020-06-18 06:29:04 -07:00
dapr/proto reconciled merge issues 2020-06-17 07:26:31 -07:00
example removed dup proto gen and fixed example 2020-06-17 13:14:51 -07:00
.gitignore v0.8 upgrade, proto update fixed, readme sync 2020-06-12 14:29:20 -07:00
CONTRIBUTING.md updated contrib doc for sdk vs dapr 2020-06-17 07:11:47 -07:00
LICENSE Initial commit 2019-10-10 09:48:33 -07:00
Makefile reconciled merge issues 2020-06-17 07:26:31 -07:00
Readme.md mergin mod 2020-06-17 07:20:13 -07:00
go.mod reconciled merge issues 2020-06-17 07:26:31 -07:00
go.sum merged upstream 2020-06-17 07:21:30 -07:00

Readme.md

Dapr SDK for Go

This is the dapr SDK (client) for Go.

Update the latest gRPC proto clients

./protogen.sh

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:

  1. Start the serving app in the example/serving directory
cd example/serving
dapr run --app-id serving \
         --protocol grpc \
         --app-port 50001 \
         go run main.go
  1. Start the client app in the example/client directory
cd example/client
dapr run --app-id caller \
         --components-path ./comp \
         go run main.go