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) AttachReturn(returnPath tun.Return) error
- func (w *Endpoint) Close() error
- func (w *Endpoint) DetachReturn(returnPath tun.Return) error
- func (w *Endpoint) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (w *Endpoint) InterfaceUpdated()
- func (w *Endpoint) JudgeFlow(network uint8, source netip.AddrPort, destination netip.AddrPort, ...) tun.FlowVerdict
- 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) NewDNSPacket(payload []byte, source M.Socksaddr, destination M.Socksaddr, ...)
- func (w *Endpoint) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, source M.Socksaddr, ...)
- func (w *Endpoint) PortAddresses() (netip.Addr, netip.Addr)
- func (w *Endpoint) PortMTU() uint32
- func (w *Endpoint) PreMatchFlow(network string, destination netip.Addr) adapter.PreMatchAction
- func (w *Endpoint) PreferredAddress(metadata *adapter.InboundContext, address netip.Addr) bool
- func (w *Endpoint) PreferredDomain(metadata *adapter.InboundContext, domain string) bool
- func (w *Endpoint) Start(stage adapter.StartStage) error
- func (w *Endpoint) WritePackets(packets [][]byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEndpoint ¶
func RegisterEndpoint ¶
Types ¶
type Endpoint ¶
func (*Endpoint) AttachReturn ¶ added in v1.14.0
func (*Endpoint) DetachReturn ¶ added in v1.14.0
func (*Endpoint) DialContext ¶
func (*Endpoint) InterfaceUpdated ¶
func (w *Endpoint) InterfaceUpdated()
func (*Endpoint) ListenPacket ¶
func (*Endpoint) ListenPacketWithDestination ¶ added in v1.12.24
func (*Endpoint) NewConnectionEx ¶
func (*Endpoint) NewDNSPacket ¶ added in v1.14.0
func (*Endpoint) NewPacketConnectionEx ¶
func (*Endpoint) PortAddresses ¶ added in v1.14.0
func (*Endpoint) PreMatchFlow ¶ added in v1.14.0
func (*Endpoint) PreferredAddress ¶ added in v1.13.0
func (*Endpoint) PreferredDomain ¶ added in v1.13.0
func (w *Endpoint) PreferredDomain(metadata *adapter.InboundContext, domain string) bool
func (*Endpoint) WritePackets ¶ added in v1.14.0
Click to show internal directories.
Click to hide internal directories.