Documentation ¶
Index ¶
- func NewError(logger logger.ContextLogger, ctx context.Context, err error)deprecated
- func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Inbound, error)
- func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Outbound, error)
- func RegisterInbound(registry *inbound.Registry)
- func RegisterOutbound(registry *outbound.Registry)
- type Inbound
- func (h *Inbound) Close() error
- func (h *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, ...)
- func (h *Inbound) NewError(ctx context.Context, err error)
- func (h *Inbound) NewPacketEx(buffer *buf.Buffer, source M.Socksaddr)
- func (h *Inbound) Start() error
- type MultiInbound
- func (h *MultiInbound) Close() error
- func (h *MultiInbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, ...)
- func (h *MultiInbound) NewError(ctx context.Context, err error)
- func (h *MultiInbound) NewPacketEx(buffer *buf.Buffer, source M.Socksaddr)
- func (h *MultiInbound) Start() error
- type Outbound
- type RelayInbound
- func (h *RelayInbound) Close() error
- func (h *RelayInbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, ...)
- func (h *RelayInbound) NewError(ctx context.Context, err error)
- func (h *RelayInbound) NewPacketEx(buffer *buf.Buffer, source M.Socksaddr)
- func (h *RelayInbound) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInbound ¶
func NewOutbound ¶
func RegisterInbound ¶
func RegisterOutbound ¶
Types ¶
type Inbound ¶
func (*Inbound) NewConnectionEx ¶
func (h *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
type MultiInbound ¶
func (*MultiInbound) Close ¶
func (h *MultiInbound) Close() error
func (*MultiInbound) NewConnectionEx ¶
func (h *MultiInbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
func (*MultiInbound) NewPacketEx ¶
func (h *MultiInbound) NewPacketEx(buffer *buf.Buffer, source M.Socksaddr)
func (*MultiInbound) Start ¶
func (h *MultiInbound) Start() error
type Outbound ¶
func (*Outbound) DialContext ¶
func (*Outbound) InterfaceUpdated ¶
func (h *Outbound) InterfaceUpdated()
func (*Outbound) ListenPacket ¶
type RelayInbound ¶
func (*RelayInbound) Close ¶
func (h *RelayInbound) Close() error
func (*RelayInbound) NewConnectionEx ¶
func (h *RelayInbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
func (*RelayInbound) NewPacketEx ¶
func (h *RelayInbound) NewPacketEx(buffer *buf.Buffer, source M.Socksaddr)
func (*RelayInbound) Start ¶
func (h *RelayInbound) Start() error
Click to show internal directories.
Click to hide internal directories.