Documentation ¶
Index ¶
- func NewEndpoint(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Endpoint, error)
- func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Outbound, error)
- func RegisterEndpoint(registry *endpoint.Registry)
- func RegisterOutbound(registry *outbound.Registry)
- type Endpoint
- func (w *Endpoint) Close() error
- func (w *Endpoint) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (w *Endpoint) InterfaceUpdated()
- func (w *Endpoint) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (w *Endpoint) NewConnectionEx(ctx context.Context, conn net.Conn, source M.Socksaddr, ...)
- func (w *Endpoint) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, source M.Socksaddr, ...)
- func (w *Endpoint) PrepareConnection(network string, source M.Socksaddr, destination M.Socksaddr) error
- func (w *Endpoint) Start(stage adapter.StartStage) error
- type Outbound
- func (o *Outbound) Close() error
- func (o *Outbound) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (o *Outbound) InterfaceUpdated()
- func (o *Outbound) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (o *Outbound) Start(stage adapter.StartStage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEndpoint ¶
func NewOutbound ¶
func RegisterEndpoint ¶
func RegisterOutbound ¶
Types ¶
type Endpoint ¶
func (*Endpoint) DialContext ¶
func (*Endpoint) InterfaceUpdated ¶
func (w *Endpoint) InterfaceUpdated()
func (*Endpoint) ListenPacket ¶
func (*Endpoint) NewConnectionEx ¶
func (*Endpoint) NewPacketConnectionEx ¶
func (*Endpoint) PrepareConnection ¶
type Outbound ¶
func (*Outbound) DialContext ¶
func (*Outbound) InterfaceUpdated ¶
func (o *Outbound) InterfaceUpdated()
func (*Outbound) ListenPacket ¶
Click to show internal directories.
Click to hide internal directories.