From ffab9778191ffaf7ddd7dbd09c932bcaffee2c9f Mon Sep 17 00:00:00 2001 From: chai2010 Date: Tue, 14 Aug 2018 21:57:03 +0800 Subject: [PATCH] =?UTF-8?q?ch4:=20=E8=A7=84=E8=8C=83=E5=9B=BE=E5=83=8F?= =?UTF-8?q?=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ch4-rpc/ch4-06-grpc-ext.md | 2 +- ...06-grpc-gateway.png => ch4.6-1-grpc-gateway.png} | Bin 2 files changed, 1 insertion(+), 1 deletion(-) rename images/{ch4-06-grpc-gateway.png => ch4.6-1-grpc-gateway.png} (100%) diff --git a/ch4-rpc/ch4-06-grpc-ext.md b/ch4-rpc/ch4-06-grpc-ext.md index d69359c..1b44291 100644 --- a/ch4-rpc/ch4-06-grpc-ext.md +++ b/ch4-rpc/ch4-06-grpc-ext.md @@ -165,7 +165,7 @@ GRPC服务一般用于集群内部通信,如果需要对外暴露服务一般 grpc-gateway的工作原理如下图: -![](../images/ch4-06-grpc-gateway.png) +![](../images/ch4.6-1-grpc-gateway.png) 通过在Protobuf文件中添加路由相关的元信息,通过自定义的代码插件生成路由相关的处理代码,最终将REST请求转给更后端的GRPC服务处理。 diff --git a/images/ch4-06-grpc-gateway.png b/images/ch4.6-1-grpc-gateway.png similarity index 100% rename from images/ch4-06-grpc-gateway.png rename to images/ch4.6-1-grpc-gateway.png