Target is what an incoming matched connection is sent to.
| 285 | |
| 286 | // Target is what an incoming matched connection is sent to. |
| 287 | type Target interface { |
| 288 | // HandleConn is called when an incoming connection is |
| 289 | // matched. After the call to HandleConn, the tcpproxy |
| 290 | // package never touches the conn again. Implementations are |
| 291 | // responsible for closing the connection when needed. |
| 292 | // |
| 293 | // The concrete type of conn will be of type *Conn if any |
| 294 | // bytes have been consumed for the purposes of route |
| 295 | // matching. |
| 296 | HandleConn(net.Conn) |
| 297 | } |
| 298 | |
| 299 | // To is shorthand way of writing &tlsproxy.DialProxy{Addr: addr}. |
| 300 | func To(addr string) *DialProxy { |
nothing calls this directly
no outgoing calls
no test coverage detected