Documentation
¶
Index ¶
- func NewEndpoint(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Endpoint, error)
- func RegisterEndpoint(registry *endpoint.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) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (w *Endpoint) ListenPacketWithDestination(ctx context.Context, destination M.Socksaddr) (net.PacketConn, netip.Addr, error)
- func (w *Endpoint) NewConnectionEx(ctx context.Context, conn net.Conn, source M.Socksaddr, ...)
- func (w *Endpoint) NewDirectRouteConnection(metadata adapter.InboundContext, routeContext tun.DirectRouteContext, ...) (tun.DirectRouteDestination, error)
- func (w *Endpoint) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, source M.Socksaddr, ...)
- func (w *Endpoint) PreferredAddress(address netip.Addr) bool
- func (w *Endpoint) PreferredDomain(domain string) bool
- func (w *Endpoint) PrepareConnection(network string, source M.Socksaddr, destination M.Socksaddr, ...) (tun.DirectRouteDestination, error)
- func (w *Endpoint) Start(stage adapter.StartStage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEndpoint ¶
func RegisterEndpoint ¶
Types ¶
type Endpoint ¶
func (*Endpoint) DialContext ¶
func (*Endpoint) ListenPacket ¶
func (*Endpoint) ListenPacketWithDestination ¶ added in v1.12.24
func (*Endpoint) NewConnectionEx ¶
func (*Endpoint) NewDirectRouteConnection ¶ added in v1.13.0
func (*Endpoint) NewPacketConnectionEx ¶
func (*Endpoint) PreferredAddress ¶ added in v1.13.0
func (*Endpoint) PreferredDomain ¶ added in v1.13.0
func (*Endpoint) PrepareConnection ¶
Click to show internal directories.
Click to hide internal directories.