docker build -t dapr-test .
kind load docker-image dapr-test
kubectl apply -f *.yaml
You can invoke an example httpbin service with calling /invoke-service endpoint inside example app.
Example:
curl localhost:8080/invoce-service
//code
client.PublishEvent(context.Background(), "rabbitmq-pubsub", "test-topic", []byte("hello dapr"))
kubectl apply -f state-store.yaml
Example:
curl localhost:8080/save-state -d '{"my-key":"my-value"}'
//code
client.SaveState(context.Background(), "my-redis", k, []byte(v))
Example:
curl localhost:8080/save-state -d '{"first-key":"first-value", "second-key":"second-value"}'
//code
client.SaveBulkState(context.Background(), "my-redis", items...)
Example:
curl localhost:8080/get-state?key=my-key'
//code
client.GetState(context.Background(), "my-redis", key)
kubectl apply -f pubsub.yaml
curl localhost:8080/publish
//code
client.PublishEvent(context.Background(), "rabbitmq-pubsub", "test-topic", []byte("hello dapr"))