Documentation ¶
Index ¶
- type Connection
- func (v *Connection) Close() error
- func (v *Connection) LocalAddr() net.Addr
- func (v *Connection) Read(b []byte) (int, error)
- func (v *Connection) RemoteAddr() net.Addr
- func (v *Connection) Reusable() bool
- func (v *Connection) SetDeadline(t time.Time) error
- func (v *Connection) SetReadDeadline(t time.Time) error
- func (v *Connection) SetReusable(bool)
- func (v *Connection) SetWriteDeadline(t time.Time) error
- func (v *Connection) Write(b []byte) (int, error)
- type DefaultOutboundHandlerManager
- func (v *DefaultOutboundHandlerManager) AddHandler(ctx context.Context, config *proxyman.OutboundHandlerConfig) error
- func (DefaultOutboundHandlerManager) Close()
- func (v *DefaultOutboundHandlerManager) GetDefaultHandler() proxyman.OutboundHandler
- func (v *DefaultOutboundHandlerManager) GetHandler(tag string) proxyman.OutboundHandler
- func (DefaultOutboundHandlerManager) Interface() interface{}
- func (DefaultOutboundHandlerManager) Start() error
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(stream ray.Ray) *Connection
func (*Connection) LocalAddr ¶
func (v *Connection) LocalAddr() net.Addr
LocalAddr implements net.Conn.LocalAddr().
func (*Connection) Read ¶
func (v *Connection) Read(b []byte) (int, error)
Read implements net.Conn.Read().
func (*Connection) RemoteAddr ¶
func (v *Connection) RemoteAddr() net.Addr
RemoteAddr implements net.Conn.RemoteAddr().
func (*Connection) Reusable ¶
func (v *Connection) Reusable() bool
func (*Connection) SetDeadline ¶
func (v *Connection) SetDeadline(t time.Time) error
func (*Connection) SetReadDeadline ¶
func (v *Connection) SetReadDeadline(t time.Time) error
func (*Connection) SetReusable ¶
func (v *Connection) SetReusable(bool)
func (*Connection) SetWriteDeadline ¶
func (v *Connection) SetWriteDeadline(t time.Time) error
func (*Connection) Write ¶
func (v *Connection) Write(b []byte) (int, error)
Write implements net.Conn.Write().
type DefaultOutboundHandlerManager ¶
type DefaultOutboundHandlerManager struct { sync.RWMutex // contains filtered or unexported fields }
func New ¶
func New(ctx context.Context, config *proxyman.OutboundConfig) (*DefaultOutboundHandlerManager, error)
func (*DefaultOutboundHandlerManager) AddHandler ¶
func (v *DefaultOutboundHandlerManager) AddHandler(ctx context.Context, config *proxyman.OutboundHandlerConfig) error
func (DefaultOutboundHandlerManager) Close ¶
func (DefaultOutboundHandlerManager) Close()
func (*DefaultOutboundHandlerManager) GetDefaultHandler ¶
func (v *DefaultOutboundHandlerManager) GetDefaultHandler() proxyman.OutboundHandler
func (*DefaultOutboundHandlerManager) GetHandler ¶
func (v *DefaultOutboundHandlerManager) GetHandler(tag string) proxyman.OutboundHandler
func (DefaultOutboundHandlerManager) Interface ¶
func (DefaultOutboundHandlerManager) Interface() interface{}
func (DefaultOutboundHandlerManager) Start ¶
func (DefaultOutboundHandlerManager) Start() error
Click to show internal directories.
Click to hide internal directories.