Skip to content

Commit

Permalink
Update grpc.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Jul 8, 2024
1 parent 3851be8 commit 4a4d2ac
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Host: localhost
Port: 8888
Upstreams:
- Grpc:
Target: 0.0.0.0:8080
Target: localhost:8080
# protoset mode
ProtoSets:
- hello.pb
Expand Down Expand Up @@ -179,7 +179,6 @@ func main() {
defer gw.Stop()
gw.Start()
}
```

7 Open two separate terminals to start the grpc server service and the gateway service, and then visit `http://localhost:8888/ping`:
Expand Down Expand Up @@ -266,7 +265,7 @@ Host: localhost
Port: 8888
Upstreams:
- Grpc:
Target: 0.0.0.0:8080
Target: localhost:8080
# Mappings can also be written in proto options
Mappings:
- Method: get
Expand Down Expand Up @@ -297,7 +296,6 @@ func main() {
defer gw.Stop()
gw.Start()
}
```

6 Open two separate terminals to start the grpc server service and the gateway service, and then visit `http://localhost:8888/ping`:
Expand Down

0 comments on commit 4a4d2ac

Please sign in to comment.