1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-27 23:12:20 +00:00
advanced-go-programming-book/ch4-rpc/ch4-03-netrpc-hack.md
2018-07-01 07:59:27 +08:00

25 lines
419 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 4.3. 玩转RPC
TODO
<!--
认证/反向/gls能够拿到req吗基于req的gls
--
pb 和 json 是类似的,
唯一的差异的 protoc 工具
有了代码生成,一切就发生变化了
pb 的重要性不再时底层的编码,二是 api 的通用语言!!!
但是 pb 个 rest 是无法一一等价的
生成简单的代码,增加接口约束
甚至最终回归到 gob 或 json 编码
-->