TCPProxy is a proxy for TCP connections. It implements the Proxy interface to handle TCP traffic forwarding between the frontend and backend addresses.
| 10 | // TCPProxy is a proxy for TCP connections. It implements the Proxy interface to |
| 11 | // handle TCP traffic forwarding between the frontend and backend addresses. |
| 12 | type TCPProxy struct { |
| 13 | listener *net.TCPListener |
| 14 | frontendAddr *net.TCPAddr |
| 15 | backendAddr *net.TCPAddr |
| 16 | } |
| 17 | |
| 18 | // NewTCPProxy creates a new TCPProxy. |
| 19 | func NewTCPProxy(listener *net.TCPListener, backendAddr *net.TCPAddr) (*TCPProxy, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected