Documentation
¶
Index ¶
- func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Outbound, error)
- func RegisterOutbound(registry *outbound.Registry)
- type Backend
- type Outbound
- func (o *Outbound) AttachReturn(returnPath tun.Return) error
- func (o *Outbound) Close() error
- func (o *Outbound) DetachReturn(returnPath tun.Return) error
- func (o *Outbound) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (o *Outbound) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (o *Outbound) PortAddresses() (netip.Addr, netip.Addr)
- func (o *Outbound) PortMTU() uint32
- func (o *Outbound) PortSelectorRange() (uint16, uint16)
- func (o *Outbound) PreMatchFlow(network string, destination netip.Addr) adapter.PreMatchAction
- func (o *Outbound) PreferredAddress(metadata *adapter.InboundContext, address netip.Addr) bool
- func (o *Outbound) PreferredDomain(metadata *adapter.InboundContext, domain string) bool
- func (o *Outbound) Start(stage adapter.StartStage) error
- func (o *Outbound) WritePackets(packets [][]byte) error
- type Service
- type ServiceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOutbound ¶
func RegisterOutbound ¶
Types ¶
type Outbound ¶
func (*Outbound) AttachReturn ¶
func (*Outbound) DetachReturn ¶
func (*Outbound) DialContext ¶
func (*Outbound) ListenPacket ¶
func (*Outbound) PortSelectorRange ¶
func (*Outbound) PreMatchFlow ¶
func (*Outbound) PreferredAddress ¶
func (*Outbound) PreferredDomain ¶
func (o *Outbound) PreferredDomain(metadata *adapter.InboundContext, domain string) bool
func (*Outbound) WritePackets ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(options ServiceOptions) (*Service, error)
func (*Service) FileDescriptor ¶
func (s *Service) FileDescriptor() int
func (*Service) Inet6Active ¶
func (s *Service) Inet6Active() bool
Click to show internal directories.
Click to hide internal directories.