I would like to write a middleware to inspect a binary protocol which is passed through a traefik load-balancer and which would close the connection if certain conditions are met. It seems writing a custom middleware is the way to go.
I have read the plugin development and the demo plugin pages, and browsed the Plugin Catalogue, but I can only find info on how to make a HTTP middleware. The plugin demo page writes that a middlware plugin provides a http.Handler and does not mention a TCP handler or similar.
Is it possible to develop a middleware for TCP and are there any examples?