1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

Replace go-nats with nats.go in examples

Signed-off-by: Waldemar Quevedo <wally@synadia.com>
This commit is contained in:
Waldemar Quevedo
2019-06-05 15:06:39 -07:00
parent b4bcfc165e
commit e22bcf3938
7 changed files with 20 additions and 20 deletions

View File

@@ -216,9 +216,9 @@ At minimum the server requires the `operator` JWT, which we have pointed at dire
Lets install some tooling:
```text
> go get github.com/nats-io/go-nats/examples/nats-pub
> go get github.com/nats-io/nats.go/examples/nats-pub
> go get github.com/nats-io/go-nats/examples/nats-sub
> go get github.com/nats-io/nats.go/examples/nats-sub
```
Create a subscriber:

View File

@@ -100,7 +100,7 @@ To test the service, we can install the `nats-req` and `nats-rply` tools:
Set up a process to handle the request:
```text
> go get github.com/nats-io/go-nats/examples/nats-rply
> go get github.com/nats-io/nats.go/examples/nats-rply
> nats-rply -creds ~/.nkeys/Test/accounts/AccountB/users/userb.creds "help" "I will help"
Listening on [help]
@@ -108,7 +108,7 @@ Listening on [help]
Send the request:
```text
> go get github.com/nats-io/go-nats/examples/nats-req
> go get github.com/nats-io/nats.go/examples/nats-req
> nats-req -creds ~/.nkeys/Test/accounts/AccountB/users/userb.creds help me
Published [help] : 'me'
```
@@ -290,4 +290,4 @@ The service receives the message:
The requester receives its response:
```text
Received [_INBOX.N3IiqWbiAQfPoINCBpBrUM.ZjBNtkB3] : 'I will help'
```
```