An Inbound processes inbound connections.
| 17 | |
| 18 | // An Inbound processes inbound connections. |
| 19 | type Inbound interface { |
| 20 | // Network returns a list of networks that this inbound supports. Connections with not-supported networks will not be passed into Process(). |
| 21 | Network() []net.Network |
| 22 | |
| 23 | // Process processes a connection of given network. If necessary, the Inbound can dispatch the connection to an Outbound. |
| 24 | Process(context.Context, net.Network, internet.Connection, routing.Dispatcher) error |
| 25 | } |
| 26 | |
| 27 | // An Outbound process outbound connections. |
| 28 | type Outbound interface { |
no outgoing calls
no test coverage detected