There is a base which can be used/studied: https://github.com/negasus/haproxy-spoe-go documentation of the protocol: https://www.haproxy.org/download/3.0/doc/SPOE.txt