go-sdk

module
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2020 License: MIT

README

Dapr SDK for Go

This is the Dapr SDK for Go, based on the auto-generated proto client.

For more info on Dapr and gRPC, visit this link.

Installation

go get github.com/dapr/go-sdk

Usage

The example folder contains a Dapr enabled app that receives events (client), and a caller that invokes the Dapr API (caller).

  1. Run the client
cd example/client
dapr run --app-id client --protocol grpc --app-port 4000 go run main.go
  1. 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

Directories

Path Synopsis
dapr
example
caller command
client command
examples module
actor module
configuration module
grpc-service module
hello-world module
pubsub module
service module
socket module
tools

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL