官术网_书友最值得收藏!

Working with Middleware and RPC

In this chapter, we are going to look at two new concepts. First, we will learn about middleware, and how can we build one from scratch. Then, we will move to a better middleware solution written by the community, called Gorilla handlers. We will then see the use cases where middleware is helpful. After that, we will learn about developing Remote Procedure Call (RPCservices with Go's internal RPC and JSON-RPC. Then, we will move to an advanced RPC framework called Gorilla HTTP RPC.

The topics we cover in this chapter are as follows:

  • What is middleware?
  • Multiple middleware and chaining 
  • Painless middleware chaining with alice
  • Using Gorilla handlers middleware for logging
  • What is RPC?
  • JSON-RPC using Gorilla RPC
主站蜘蛛池模板: 嘉祥县| 汪清县| 乌拉特前旗| 黄大仙区| 黄骅市| 十堰市| 同仁县| 孝昌县| 鄂温| 阜宁县| 习水县| 镇坪县| 湘西| 扎赉特旗| 小金县| 灵武市| 炎陵县| 饶阳县| 平利县| 正安县| 菏泽市| 高青县| 福建省| 慈溪市| 岐山县| 库伦旗| 新乐市| 隆化县| 大足县| 垣曲县| 上蔡县| 华容县| 黄平县| 板桥市| 深泽县| 磐安县| 兴安盟| 宽甸| 云安县| 冕宁县| 分宜县|