Documentation ¶
Overview ¶
The code below is a goreplay middleware used for regression testing current vs next Horizon version. The middleware system of goreplay is rather simple: it streams one of 3 message types to stdin: request (HTTP headers), original response and replayed response. On request we can modify the request and send it to stdout but we don't use this feature here: we send request to mirroring target as is. Finally, everything printed to stderr is the middleware log, this is where we put the information about the request if the diff is found.
More information and diagrams about the middlewares can be found here: https://github.com/buger/goreplay/wiki/Middleware
Click to show internal directories.
Click to hide internal directories.