Skip to content

Commit

Permalink
UPDATED docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanvalentine committed Oct 23, 2019
1 parent 2693aae commit cdfd177
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ CreateUserInstance:
func main() {
d := discover.NewDiscovery()

token, err := d.Queue("acme-prod.my-queue", types.Request{
token, err := d.Queue("acme-prod.my-service->my-queue", types.Request{
Body: []byte("{}"),
}, nil)
...
Expand Down Expand Up @@ -76,12 +76,12 @@ d.Request("my-namespace.users->create-user", types.Request{

```golang
d := discover.NewDiscovery()
d.Queue("my-namespace.my-queue", types.Request{
d.Queue("my-namespace.my-service->my-queue", types.Request{
Body: jsonString,
}, nil)

go func() {
messages, err := d.Listen("my-namespace.my-queue", opts)
messages, err := d.Listen("my-namespace.my-service->my-queue", opts)
for message := range message {
log.Println(string(message.Body))
}
Expand All @@ -92,7 +92,7 @@ go func() {

```golang
d := discovery.NewDiscovery()
d.Publish("my-namespace.my-event", types.Request{
d.Publish("my-namespace.my-service->my-event", types.Request{
Body: jsonEvent,
})
```
Expand All @@ -101,7 +101,7 @@ d.Publish("my-namespace.my-event", types.Request{

```golang
d := discovery.NewDiscovery()
d.Automate("my-namespace.my-script", types.Request{
d.Automate("my-namespace.my-service->my-script", types.Request{
Body: jsonEvent,
})
```
Expand Down

0 comments on commit cdfd177

Please sign in to comment.