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) ReadMultiBuffer() (buf.MultiBuffer, error)
- func (v *Connection) RemoteAddr() net.Addr
- func (v *Connection) SetDeadline(t time.Time) error
- func (v *Connection) SetReadDeadline(t time.Time) error
- func (v *Connection) SetWriteDeadline(t time.Time) error
- func (v *Connection) Write(b []byte) (int, error)
- func (v *Connection) WriteMultiBuffer(mb buf.MultiBuffer) error
- type Handler
- type Manager
- func (m *Manager) AddHandler(ctx context.Context, config *proxyman.OutboundHandlerConfig) error
- func (*Manager) Close()
- func (m *Manager) GetDefaultHandler() proxyman.OutboundHandler
- func (m *Manager) GetHandler(tag string) proxyman.OutboundHandler
- func (*Manager) Interface() interface{}
- func (*Manager) Start() error
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) ReadMultiBuffer ¶
func (v *Connection) ReadMultiBuffer() (buf.MultiBuffer, error)
func (*Connection) RemoteAddr ¶
func (v *Connection) RemoteAddr() net.Addr
RemoteAddr implements net.Conn.RemoteAddr().
func (*Connection) SetDeadline ¶
func (v *Connection) SetDeadline(t time.Time) error
SetDeadline implements net.Conn.SetDeadline().
func (*Connection) SetReadDeadline ¶
func (v *Connection) SetReadDeadline(t time.Time) error
SetReadDeadline implements net.Conn.SetReadDeadline().
func (*Connection) SetWriteDeadline ¶
func (v *Connection) SetWriteDeadline(t time.Time) error
SetWriteDeadline implement net.Conn.SetWriteDeadline().
func (*Connection) Write ¶
func (v *Connection) Write(b []byte) (int, error)
Write implements net.Conn.Write().
func (*Connection) WriteMultiBuffer ¶
func (v *Connection) WriteMultiBuffer(mb buf.MultiBuffer) error
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) Dial ¶
func (h *Handler) Dial(ctx context.Context, dest v2net.Destination) (internet.Connection, error)
Dial implements proxy.Dialer.Dial().
type Manager ¶
Manager is to manage all outbound handlers.
func New ¶
New creates a new Manager.
func (*Manager) AddHandler ¶
func (*Manager) GetDefaultHandler ¶
func (m *Manager) GetDefaultHandler() proxyman.OutboundHandler
func (*Manager) GetHandler ¶
func (m *Manager) GetHandler(tag string) proxyman.OutboundHandler
Click to show internal directories.
Click to hide internal directories.