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) NewConnection(ctx context.Context, conn net.Conn, upstreamMetadata M.Metadata) error
- func (l *ProxyListener) NewPacketConnection(ctx context.Context, conn N.PacketConn, upstreamMetadata M.Metadata) error
- 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) NewConnection ¶
func (*ProxyListener) NewPacketConnection ¶
func (l *ProxyListener) NewPacketConnection(ctx context.Context, conn N.PacketConn, upstreamMetadata M.Metadata) error
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.