Documentation ¶
Index ¶
- func NewRedirect(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Inbound, error)
- func NewTProxy(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Inbound, error)
- func RegisterRedirect(registry *inbound.Registry)
- func RegisterTProxy(registry *inbound.Registry)
- type Redirect
- type TProxy
- func (t *TProxy) Close() error
- func (t *TProxy) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, ...)
- func (t *TProxy) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, source M.Socksaddr, ...)
- func (t *TProxy) NewPacketEx(buffer *buf.Buffer, oob []byte, source M.Socksaddr)
- func (t *TProxy) Start(stage adapter.StartStage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedirect ¶
func RegisterRedirect ¶
func RegisterTProxy ¶
Types ¶
type Redirect ¶
func (*Redirect) NewConnectionEx ¶
func (h *Redirect) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
type TProxy ¶
func (*TProxy) NewConnectionEx ¶
func (t *TProxy) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
func (*TProxy) NewPacketConnectionEx ¶
func (*TProxy) NewPacketEx ¶
Click to show internal directories.
Click to hide internal directories.