goreplay-middleware

command
v0.0.0-...-a8bb791 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

README

goreplay-middleware

Documentation

Overview

The code below is a goreplay middleware used for regression testing current vs next Aurora 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL