update readme output
This commit is contained in:
parent
3db51216b2
commit
e6d63d9ff0
17
README.md
17
README.md
@ -36,17 +36,16 @@ $ consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul
|
|||||||
```
|
```
|
||||||
$ go run go-micro/template/main.go
|
$ go run go-micro/template/main.go
|
||||||
|
|
||||||
1416690099281057746 [Debug] Rpc handler /_rpc
|
I0523 12:21:09.506998 77096 server.go:113] Starting server go.micro.service.template id go.micro.service.template-cfc481fc-013d-11e5-bcdc-68a86d0d36b6
|
||||||
1416690099281092588 [Debug] Starting server go.micro.service.template id go.micro.service.template-c0bfcb44-728a-11e4-b099-68a86d0d36b6
|
I0523 12:21:09.507281 77096 rpc_server.go:112] Listening on [::]:51868
|
||||||
1416690099281192941 [Debug] Listening on [::]:58264
|
I0523 12:21:09.507329 77096 server.go:95] Registering node: go.micro.service.template-cfc481fc-013d-11e5-bcdc-68a86d0d36b6
|
||||||
1416690099281215346 [Debug] Registering go.micro.service.template-c0bfcb44-728a-11e4-b099-68a86d0d36b6
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Test Service
|
### Test Service
|
||||||
```
|
```
|
||||||
$ go run go-micro/examples/service_client.go
|
$ go run go-micro/examples/service_client.go
|
||||||
|
|
||||||
go.micro.service.template-c0bfcb44-728a-11e4-b099-68a86d0d36b6: Hello John
|
go.micro.service.template-cfc481fc-013d-11e5-bcdc-68a86d0d36b6: Hello John
|
||||||
```
|
```
|
||||||
|
|
||||||
## Writing a service
|
## Writing a service
|
||||||
@ -130,8 +129,8 @@ func main() {
|
|||||||
```
|
```
|
||||||
$ go run go-micro/template/main.go
|
$ go run go-micro/template/main.go
|
||||||
|
|
||||||
1416690099281057746 [Debug] Rpc handler /_rpc
|
|
||||||
1416690099281092588 [Debug] Starting server go.micro.service.template id go.micro.service.template-c0bfcb44-728a-11e4-b099-68a86d0d36b6
|
I0523 12:21:09.506998 77096 server.go:113] Starting server go.micro.service.template id go.micro.service.template-cfc481fc-013d-11e5-bcdc-68a86d0d36b6
|
||||||
1416690099281192941 [Debug] Listening on [::]:58264
|
I0523 12:21:09.507281 77096 rpc_server.go:112] Listening on [::]:51868
|
||||||
1416690099281215346 [Debug] Registering go.micro.service.template-c0bfcb44-728a-11e4-b099-68a86d0d36b6
|
I0523 12:21:09.507329 77096 server.go:95] Registering node: go.micro.service.template-cfc481fc-013d-11e5-bcdc-68a86d0d36b6
|
||||||
```
|
```
|
||||||
|
@ -16,15 +16,14 @@ Run Service
|
|||||||
```
|
```
|
||||||
$ go run main.go
|
$ go run main.go
|
||||||
|
|
||||||
1416690099281057746 [Debug] Rpc handler /_rpc
|
I0523 12:21:09.506998 77096 server.go:113] Starting server go.micro.service.template id go.micro.service.template-cfc481fc-013d-11e5-bcdc-68a86d0d36b6
|
||||||
1416690099281092588 [Debug] Starting server go.micro.service.template id go.micro.service.template-c0bfcb44-728a-11e4-b099-68a86d0d36b6
|
I0523 12:21:09.507281 77096 rpc_server.go:112] Listening on [::]:51868
|
||||||
1416690099281192941 [Debug] Listening on [::]:58264
|
I0523 12:21:09.507329 77096 server.go:95] Registering node: go.micro.service.template-cfc481fc-013d-11e5-bcdc-68a86d0d36b6
|
||||||
1416690099281215346 [Debug] Registering go.micro.service.template-c0bfcb44-728a-11e4-b099-68a86d0d36b6
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Test Service
|
Test Service
|
||||||
```
|
```
|
||||||
$ go run go-micro/examples/service_client.go
|
$ go run go-micro/examples/service_client.go
|
||||||
|
|
||||||
go.micro.service.template-c0bfcb44-728a-11e4-b099-68a86d0d36b6: Hello John
|
go.micro.service.template-cfc481fc-013d-11e5-bcdc-68a86d0d36b6: Hello John
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user