Skip to content

Commit

Permalink
minor reorg of 'examples' folder (dapr#178)
Browse files Browse the repository at this point in the history
Co-authored-by: Yaron Schneider <[email protected]>
  • Loading branch information
dmitsh and yaron2 authored Jun 24, 2021
1 parent d454938 commit aebdb62
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dapr run --app-id sub \
--app-port 8080 \
--dapr-http-port 3500 \
--log-level debug \
--components-path ../config \
--components-path ./config \
go run sub/sub.go
```

Expand All @@ -31,7 +31,7 @@ export DAPR_PUBSUB_NAME=messages

dapr run --app-id pub \
--log-level debug \
--components-path ../config \
--components-path ./config \
go run pub/pub.go
```

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/server/Readme.md → examples/service/Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dapr Go client example

The `example` folder contains a Dapr enabled `serving` app and a `client` app that uses this SDK to invoke Dapr API for state and events, The `serving` app is available as HTTP or gRPC. The `client` app can target either one of these for service to service and binding invocations.
The `examples/service` folder contains a Dapr enabled `serving` app and a `client` app that uses this SDK to invoke Dapr API for state and events, The `serving` app is available as HTTP or gRPC. The `client` app can target either one of these for service to service and binding invocations.

To run this example, start by first launching the service in either HTTP or gRPC:

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions examples/service/config/pubsub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: messages
spec:
type: pubsub.redis
version: v1
metadata:
- name: redisHost
value: localhost:6379
- name: redisPassword
value: ""
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit aebdb62

Please sign in to comment.