Skip to content

Commit 508dceb

Browse files
committed
readme updates
1 parent e87de46 commit 508dceb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Readme.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ if err := client.PublishEvent(ctx, "component-name", "topic-name", data); err !=
160160
To invoke a specific method on another service running with Dapr sidecar, the Dapr client provides two options. To invoke a service without any data:
161161

162162
```go
163-
resp, err = client.InvokeService(ctx, "service-name", "method-name")
163+
resp, err = client.InvokeMethod(ctx, "service-name", "method-name")
164164
```
165165

166166
And to invoke a service with data:
@@ -171,7 +171,7 @@ content := &dapr.DataContent{
171171
Data: []byte(`{ "id": "a123", "value": "demo", "valid": true }`),
172172
}
173173

174-
resp, err := client.InvokeServiceWithContent(ctx, "service-name", "method-name", content)
174+
resp, err := client.InvokeMethodWithContent(ctx, "service-name", "method-name", content)
175175
```
176176

177177
##### Bindings
@@ -188,7 +188,7 @@ err = client.InvokeOutputBinding(ctx, in)
188188
To invoke method with content and metadata:
189189

190190
```go
191-
in := &dapr.BindingInvocation{
191+
in := &dapr.InvokeBindingRequest{
192192
Name: "binding-name",
193193
Operation: "operation-name",
194194
Data: []byte("hello"),
@@ -200,7 +200,7 @@ out, err := client.InvokeBinding(ctx, in)
200200

201201
##### Secrets
202202

203-
The Dapr client also provides access to the runtime secrets that can be backed by any number of secrete stores (e.g. Kubernetes Secrets, Hashicorp Vault, or Azure KeyVault):
203+
The Dapr client also provides access to the runtime secrets that can be backed by any number of secrete stores (e.g. Kubernetes Secrets, HashiCorp Vault, or Azure KeyVault):
204204

205205
```go
206206
opt := map[string]string{

0 commit comments

Comments
 (0)