Proxy defines the behavior of a proxy. It forwards traffic back and forth between two endpoints : the frontend and the backend. It can be used to do software port-mapping between two addresses. e.g. forward all traffic between the frontend (host) 127.0.0.1:3000 to the backend (container) at 172.17.4
| 18 | // e.g. forward all traffic between the frontend (host) 127.0.0.1:3000 |
| 19 | // to the backend (container) at 172.17.42.108:4000. |
| 20 | type Proxy interface { |
| 21 | // Run starts forwarding traffic back and forth between the front |
| 22 | // and back-end addresses. |
| 23 | Run() |
| 24 | // Close stops forwarding traffic and close both ends of the Proxy. |
| 25 | Close() |
| 26 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…