Documentation ¶
Index ¶
- 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 (i *Inbound) Close() error
- func (i *Inbound) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (i *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, ...)
- func (i *Inbound) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, source M.Socksaddr, ...)
- func (i *Inbound) NewPacketEx(buffer *buf.Buffer, source M.Socksaddr)
- func (i *Inbound) Start() error
- type Outbound
- func (h *Outbound) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (h *Outbound) DialParallel(ctx context.Context, network string, destination M.Socksaddr, ...) (net.Conn, error)
- func (h *Outbound) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, 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) NewConnection ¶
func (*Inbound) NewConnectionEx ¶
func (i *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
func (*Inbound) NewPacketConnectionEx ¶
type Outbound ¶
func (*Outbound) DialContext ¶
func (*Outbound) DialParallel ¶
func (*Outbound) ListenPacket ¶
Click to show internal directories.
Click to hide internal directories.