Documentation ¶
Overview ¶
Package proxy contains all proxies used by Netool.
To implement an inbound or outbound proxy, one needs to do the following: 1. Implement the interface(s) below. 2. Register a config creator through common.RegisterConfig.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetInbound ¶
type GetInbound interface {
GetInbound() Inbound
}
type GetOutbound ¶
type GetOutbound interface {
GetOutbound() Outbound
}
type Inbound ¶
type Inbound interface { // Network returns a list of networks that this inbound supports. Connections with not-supported networks will not be passed into Process(). Network() []net.Network // Process processes a connection of given network. If necessary, the Inbound can dispatch the connection to an Outbound. Process(context.Context, net.Network, stat.Connection, routing.Dispatcher) error }
An Inbound processes inbound connections.
Directories ¶
Path | Synopsis |
---|---|
Code generated by errors.codegen.
|
Code generated by errors.codegen. |
Code generated by errors.codegen.
|
Code generated by errors.codegen. |
Code generated by errors.codegen.
|
Code generated by errors.codegen. |
encoding
Code generated by errors.codegen.
|
Code generated by errors.codegen. |
outbound
Code generated by errors.codegen.
|
Code generated by errors.codegen. |
Click to show internal directories.
Click to hide internal directories.