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 7, 2024
1 parent acdee0f commit 57fa799
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/tutorials/gateway/grpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ Host: localhost
Port: 8888
Upstreams:
- Grpc:
Target: 0.0.0.0:8080
# protoset mode
ProtoSets:
- hello.pb
# Mappings can also be written in proto options
Mappings:
- Method: get
Path: /ping
RpcPath: hello.Hello/Ping
Target: 0.0.0.0:8080
# protoset mode
ProtoSets:
- hello.pb
# Mappings can also be written in proto options
Mappings:
- Method: get
Path: /ping
RpcPath: hello.Hello/Ping
```

6. 进入 `demo1/gateway` 目录, 新建 `gateway.go` 文件,内容如下:
Expand Down

0 comments on commit 57fa799

Please sign in to comment.