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

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
主站蜘蛛池模板: 兴文县| 龙井市| 陵水| 和龙市| 海门市| 宁都县| 新兴县| 巴东县| 邵阳市| 鞍山市| 柯坪县| 天等县| 潮安县| 武冈市| 股票| 会泽县| 横峰县| 鹿泉市| 安泽县| 盐边县| 象山县| 佛冈县| 隆子县| 海城市| 青阳县| 浦县| 阜城县| 武义县| 珲春市| 淳安县| 兴宁市| 榕江县| 板桥市| 唐河县| 乐安县| 上蔡县| 平度市| 海南省| 泰安市| 沈阳市| 阿城市|