Documentation
¶
Index ¶
- func ContextWithTag(ctx context.Context, outboundTag string) context.Context
- func CopyEarlyConn(ctx context.Context, conn net.Conn, serverConn net.Conn) error
- func New(ctx context.Context, router adapter.Router, tag string, ...) (adapter.Outbound, error)
- func NewConnection(ctx context.Context, this N.Dialer, conn net.Conn, ...) error
- func NewDirectConnection(ctx context.Context, router adapter.Router, this N.Dialer, conn net.Conn, ...) error
- func NewDirectPacketConnection(ctx context.Context, router adapter.Router, this N.Dialer, conn N.PacketConn, ...) error
- func NewError(logger log.ContextLogger, ctx context.Context, err error)
- func NewPacketConnection(ctx context.Context, this N.Dialer, conn N.PacketConn, ...) error
- func TagFromContext(ctx context.Context) (string, bool)
- type Block
- func (a *Block) Dependencies() []string
- func (h *Block) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (h *Block) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (a *Block) Network() []string
- func (h *Block) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *Block) NewError(ctx context.Context, err error)
- func (h *Block) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
- func (a *Block) Tag() string
- func (a *Block) Type() string
- type DNS
- func (a *DNS) Dependencies() []string
- func (d *DNS) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (d *DNS) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (a *DNS) Network() []string
- func (d *DNS) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *DNS) NewError(ctx context.Context, err error)
- func (d *DNS) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
- func (a *DNS) Tag() string
- func (a *DNS) Type() string
- type Direct
- func (a *Direct) Dependencies() []string
- func (h *Direct) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (h *Direct) DialParallel(ctx context.Context, network string, destination M.Socksaddr, ...) (net.Conn, error)
- func (h *Direct) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (a *Direct) Network() []string
- func (h *Direct) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *Direct) NewError(ctx context.Context, err error)
- func (h *Direct) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
- func (a *Direct) Tag() string
- func (a *Direct) Type() string
- 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
- type VLESS
- func (h *VLESS) Close() error
- func (a *VLESS) Dependencies() []string
- func (h *VLESS) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (h *VLESS) InterfaceUpdated()
- func (h *VLESS) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (a *VLESS) Network() []string
- func (h *VLESS) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *VLESS) NewError(ctx context.Context, err error)
- func (h *VLESS) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
- func (a *VLESS) Tag() string
- func (a *VLESS) Type() string
- type VMess
- func (h *VMess) Close() error
- func (a *VMess) Dependencies() []string
- func (h *VMess) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (h *VMess) InterfaceUpdated()
- func (h *VMess) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (a *VMess) Network() []string
- func (h *VMess) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *VMess) NewError(ctx context.Context, err error)
- func (h *VMess) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
- func (a *VMess) Tag() string
- func (a *VMess) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyEarlyConn ¶
func NewConnection ¶
func NewDirectConnection ¶
func NewPacketConnection ¶
func NewPacketConnection(ctx context.Context, this N.Dialer, conn N.PacketConn, metadata adapter.InboundContext) error
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
func (*Block) Dependencies ¶
func (a *Block) Dependencies() []string
func (*Block) DialContext ¶
func (*Block) ListenPacket ¶
func (*Block) NewConnection ¶
func (*Block) NewPacketConnection ¶
func (h *Block) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
type DNS ¶
type DNS struct {
// contains filtered or unexported fields
}
func (*DNS) Dependencies ¶
func (a *DNS) Dependencies() []string
func (*DNS) DialContext ¶
func (*DNS) ListenPacket ¶
func (*DNS) NewConnection ¶
func (*DNS) NewPacketConnection ¶
func (d *DNS) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
type Direct ¶
type Direct struct {
// contains filtered or unexported fields
}
func (*Direct) Dependencies ¶
func (a *Direct) Dependencies() []string
func (*Direct) DialContext ¶
func (*Direct) DialParallel ¶
func (*Direct) ListenPacket ¶
func (*Direct) NewConnection ¶
func (*Direct) NewPacketConnection ¶
func (h *Direct) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
type ProxyListener ¶
type ProxyListener struct {
// contains filtered or unexported fields
}
func NewProxyListener ¶
func NewProxyListener(ctx context.Context, 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
type VLESS ¶
type VLESS struct {
// contains filtered or unexported fields
}
func (*VLESS) Dependencies ¶
func (a *VLESS) Dependencies() []string
func (*VLESS) DialContext ¶
func (*VLESS) InterfaceUpdated ¶
func (h *VLESS) InterfaceUpdated()
func (*VLESS) ListenPacket ¶
func (*VLESS) NewConnection ¶
func (*VLESS) NewPacketConnection ¶
func (h *VLESS) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
type VMess ¶
type VMess struct {
// contains filtered or unexported fields
}
func (*VMess) Dependencies ¶
func (a *VMess) Dependencies() []string
func (*VMess) DialContext ¶
func (*VMess) InterfaceUpdated ¶
func (h *VMess) InterfaceUpdated()
func (*VMess) ListenPacket ¶
func (*VMess) NewConnection ¶
func (*VMess) NewPacketConnection ¶
func (h *VMess) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
Click to show internal directories.
Click to hide internal directories.