Documentation ¶
Index ¶
- func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Outbound, error)
- func RegisterOutbound(registry *outbound.Registry)
- type Outbound
- type ProxyListener
- func (l *ProxyListener) Close() error
- func (l *ProxyListener) NewConnectionEx(ctx context.Context, conn net.Conn, source M.Socksaddr, ...)
- func (l *ProxyListener) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, source M.Socksaddr, ...)
- func (l *ProxyListener) Password() string
- func (l *ProxyListener) Port() uint16
- func (l *ProxyListener) Start() error
- func (l *ProxyListener) Username() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOutbound ¶
func RegisterOutbound ¶
Types ¶
type ProxyListener ¶
type ProxyListener struct {
// contains filtered or unexported fields
}
func NewProxyListener ¶
func NewProxyListener(ctx context.Context, logger log.ContextLogger, dialer N.Dialer) *ProxyListener
func (*ProxyListener) Close ¶
func (l *ProxyListener) Close() error
func (*ProxyListener) NewConnectionEx ¶
func (*ProxyListener) NewPacketConnectionEx ¶
func (l *ProxyListener) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, source M.Socksaddr, destination M.Socksaddr, onClose N.CloseHandlerFunc)
func (*ProxyListener) Password ¶
func (l *ProxyListener) Password() string
func (*ProxyListener) Port ¶
func (l *ProxyListener) Port() uint16
func (*ProxyListener) Start ¶
func (l *ProxyListener) Start() error
func (*ProxyListener) Username ¶
func (l *ProxyListener) Username() string
Click to show internal directories.
Click to hide internal directories.