Documentation ¶
Index ¶
- func NewSelector(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Outbound, error)
- func NewURLTest(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Outbound, error)
- func RealTag(detour adapter.Outbound) string
- func RegisterSelector(registry *outbound.Registry)
- func RegisterURLTest(registry *outbound.Registry)
- type Selector
- func (s *Selector) All() []string
- func (s *Selector) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (s *Selector) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (s *Selector) Network() []string
- func (s *Selector) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, ...)
- func (s *Selector) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext, ...)
- func (s *Selector) Now() string
- func (s *Selector) SelectOutbound(tag string) bool
- func (s *Selector) Start() error
- type URLTest
- func (s *URLTest) All() []string
- func (s *URLTest) CheckOutbounds()
- func (s *URLTest) Close() error
- func (s *URLTest) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (s *URLTest) InterfaceUpdated()
- func (s *URLTest) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (s *URLTest) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, ...)
- func (s *URLTest) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext, ...)
- func (s *URLTest) Now() string
- func (s *URLTest) PostStart() error
- func (s *URLTest) Start() error
- func (s *URLTest) URLTest(ctx context.Context) (map[string]uint16, error)
- type URLTestGroup
- func (g *URLTestGroup) CheckOutbounds(force bool)
- func (g *URLTestGroup) Close() error
- func (g *URLTestGroup) PostStart()
- func (g *URLTestGroup) Select(network string) (adapter.Outbound, bool)
- func (g *URLTestGroup) Touch()
- func (g *URLTestGroup) URLTest(ctx context.Context) (map[string]uint16, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSelector ¶
func NewURLTest ¶
func RegisterSelector ¶
func RegisterURLTest ¶
Types ¶
type Selector ¶
func (*Selector) DialContext ¶
func (*Selector) ListenPacket ¶
func (*Selector) NewConnectionEx ¶
func (s *Selector) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
func (*Selector) NewPacketConnectionEx ¶
func (s *Selector) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
func (*Selector) SelectOutbound ¶
type URLTest ¶
func (*URLTest) CheckOutbounds ¶
func (s *URLTest) CheckOutbounds()
func (*URLTest) DialContext ¶
func (*URLTest) InterfaceUpdated ¶
func (s *URLTest) InterfaceUpdated()
func (*URLTest) ListenPacket ¶
func (*URLTest) NewConnectionEx ¶
func (s *URLTest) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
func (*URLTest) NewPacketConnectionEx ¶
func (s *URLTest) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
type URLTestGroup ¶
type URLTestGroup struct {
// contains filtered or unexported fields
}
func NewURLTestGroup ¶
func (*URLTestGroup) CheckOutbounds ¶
func (g *URLTestGroup) CheckOutbounds(force bool)
func (*URLTestGroup) Close ¶
func (g *URLTestGroup) Close() error
func (*URLTestGroup) PostStart ¶
func (g *URLTestGroup) PostStart()
func (*URLTestGroup) Select ¶
func (g *URLTestGroup) Select(network string) (adapter.Outbound, bool)
func (*URLTestGroup) Touch ¶
func (g *URLTestGroup) Touch()
Click to show internal directories.
Click to hide internal directories.