Documentation ¶
Index ¶
- Variables
- func RegisterServer(server *protocols.Server, handler Handler) error
- type Client
- func (client *Client) StartProxy(listenAddr string, targetAddr string) error
- func (client *Client) StartProxyPair(proxyHost, receiverHost string, receiverPort1, receiverPort2 int) (*StartProxyPairResponse, error)
- func (client *Client) StopProxy(listenAddr string, targetAddr string) error
- func (client *Client) StopProxyPair(proxyPort1 int) error
- type Handler
- type ProxyDescription
- type StartProxy
- type StartProxyPair
- type StartProxyPairResponse
- type StopProxy
- type StopProxyPair
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Protocol *pcpProtocol MiniProtocol = protocols.NewMiniProtocol(Protocol) )
Functions ¶
Types ¶
type Client ¶
func NewClientFor ¶
func (*Client) StartProxy ¶
func (*Client) StartProxyPair ¶
func (client *Client) StartProxyPair(proxyHost, receiverHost string, receiverPort1, receiverPort2 int) (*StartProxyPairResponse, error)
func (*Client) StopProxyPair ¶
type Handler ¶
type Handler interface { StartProxy(val *StartProxy) error StopProxy(val *StopProxy) error StartProxyPair(val *StartProxyPair) (*StartProxyPairResponse, error) StopProxyPair(val *StopProxyPair) error StopServer() }
type ProxyDescription ¶
func (*ProxyDescription) ListenPort ¶
func (desc *ProxyDescription) ListenPort() (int, error)
type StartProxy ¶
type StartProxy struct {
ProxyDescription
}
type StartProxyPair ¶
type StartProxyPairResponse ¶
type StopProxy ¶
type StopProxy struct {
ProxyDescription
}
type StopProxyPair ¶
type StopProxyPair struct {
ProxyPort1 int
}
Click to show internal directories.
Click to hide internal directories.