Skip to content

timonwong/go-sdk

Repository files navigation

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 

About

Dapr SDK for go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.4%
  • Makefile 0.6%