outbound

package
v2.19.5+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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) Close

func (v *Connection) Close() error

Close implements net.Conn.Close().

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

SetDeadline implements net.Conn.SetDeadline().

func (*Connection) SetReadDeadline

func (v *Connection) SetReadDeadline(t time.Time) error

SetReadDeadline implements net.Conn.SetReadDeadline().

func (*Connection) SetReusable

func (v *Connection) SetReusable(bool)

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().

type DefaultOutboundHandlerManager

type DefaultOutboundHandlerManager struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*DefaultOutboundHandlerManager) AddHandler

func (DefaultOutboundHandlerManager) Close

func (*DefaultOutboundHandlerManager) GetDefaultHandler

func (*DefaultOutboundHandlerManager) GetHandler

func (DefaultOutboundHandlerManager) Interface

func (DefaultOutboundHandlerManager) Interface() interface{}

func (DefaultOutboundHandlerManager) Start

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(ctx context.Context, config *proxyman.OutboundHandlerConfig) (*Handler, error)

func (*Handler) Dial

Dial implements proxy.Dialer.Dial().

func (*Handler) Dispatch

func (h *Handler) Dispatch(ctx context.Context, outboundRay ray.OutboundRay)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL