Documentation
¶
Index ¶
- Constants
- Variables
- type BaseConn
- func (c *BaseConn) Close() error
- func (c *BaseConn) LocalAddr() net.Addr
- func (c *BaseConn) Read(b []byte) (int, error)
- func (c *BaseConn) RemoteAddr() net.Addr
- func (c *BaseConn) SetDeadline(t time.Time) error
- func (c *BaseConn) SetReadDeadline(t time.Time) error
- func (c *BaseConn) SetWriteDeadline(t time.Time) error
- func (c *BaseConn) Write(b []byte) (int, error)
- type Proxy
- type ProxyAddr
- type ProxyDialer
- type ProxyEntryPoint
- type ProxyKind
- type ProxyListener
- type ProxyRegistry
- type ProxyScheme
Constants ¶
View Source
const ( ProxyKindListener ProxyKind = "listener" ProxyKindDialer = "dialer" ProxyKindReadWriteCloser = "readwritecloser" )
Variables ¶
View Source
var ( ErrProxyNotSupported = errors.New("operation not supported") ErrProxyBusy = errors.New("proxy is busy") ErrProxyNotInitialized = errors.New("proxy is not initialized") ErrNotImplemented = errors.New("method not implemented") )
View Source
var Registry = ProxyRegistry{/* contains filtered or unexported fields */}
Functions ¶
This section is empty.
Types ¶
type BaseConn ¶
func (*BaseConn) RemoteAddr ¶
type Proxy ¶
type Proxy struct { Listener ProxyListener Dialer ProxyDialer Conn net.Conn }
func CreateProxyFromConn ¶
func CreateProxyFromDialer ¶
func CreateProxyFromDialer(d ProxyDialer) *Proxy
func CreateProxyFromListener ¶
func CreateProxyFromListener(ln ProxyListener) *Proxy
type ProxyAddr ¶
func (*ProxyAddr) ProxyScheme ¶
func (a *ProxyAddr) ProxyScheme() ProxyScheme
type ProxyDialer ¶
type ProxyEntryPoint ¶
type ProxyListener ¶
type ProxyRegistry ¶
type ProxyRegistry struct {
// contains filtered or unexported fields
}
func (*ProxyRegistry) Add ¶
func (r *ProxyRegistry) Add(ep ProxyEntryPoint)
func (ProxyRegistry) Get ¶
func (r ProxyRegistry) Get(key ProxyScheme) (ProxyEntryPoint, error)
func (ProxyRegistry) Keys ¶
func (r ProxyRegistry) Keys() []ProxyScheme
func (ProxyRegistry) Values ¶
func (r ProxyRegistry) Values() []ProxyEntryPoint
type ProxyScheme ¶
type ProxyScheme string
func (ProxyScheme) IsListener ¶
func (s ProxyScheme) IsListener() bool
Click to show internal directories.
Click to hide internal directories.