configuration

command
v1.7.1-1.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

Dapr Configuration Example

Step

Prepare
  • Dapr installed
Run Get Configuration
dapr run --app-id configuration-api\
         --app-protocol grpc \
         --app-port 5005 \
         --dapr-http-port 3006 \
         --log-level debug \
         --components-path ./config/ \
         go run ./main.go

Result

  • Configuration Client Logs

The subscription event order may out of order.

get config = myConfigValue
get updated config key = mySubscribeKey1, value = mySubscribeValue1 
get updated config key = mySubscribeKey2, value = mySubscribeValue1 
get updated config key = mySubscribeKey3, value = mySubscribeValue1 
get updated config key = mySubscribeKey1, value = mySubscribeValue2 
get updated config key = mySubscribeKey2, value = mySubscribeValue2 
get updated config key = mySubscribeKey3, value = mySubscribeValue2 
get updated config key = mySubscribeKey1, value = mySubscribeValue3 
get updated config key = mySubscribeKey2, value = mySubscribeValue3 
get updated config key = mySubscribeKey3, value = mySubscribeValue3 
dapr configuration subscribe finished.
✅  Exited App successfully

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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