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

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
主站蜘蛛池模板: 岚皋县| 丘北县| 文水县| 民县| 五原县| 泸水县| 汤阴县| 固原市| 湛江市| 泾源县| 太原市| 丹江口市| 探索| 缙云县| 景泰县| 土默特右旗| 长子县| 松桃| 汤原县| 浮梁县| 即墨市| 来安县| 玉门市| 香格里拉县| 措勤县| 吉隆县| 健康| 屯留县| 阜平县| 寻甸| 台南县| 岳阳市| 聊城市| 蓬安县| 济源市| 南开区| 元阳县| 绥德县| 汝阳县| 绍兴县| 三江|