Help us shape the future of Go! Take the 2026 Go Developer Survey

group

package
v1.14.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: GPL-2.0 Imports: 24 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSelector

func NewSelector(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.SelectorOutboundOptions) (adapter.Outbound, error)

func NewURLTest

func NewURLTest(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.URLTestOutboundOptions) (adapter.Outbound, error)

func RealTag

func RealTag(detour adapter.Outbound, network string) string

func RegisterSelector

func RegisterSelector(registry *outbound.Registry)

func RegisterURLTest

func RegisterURLTest(registry *outbound.Registry)

func URLTestOutbounds added in v1.14.0

func URLTestOutbounds(ctx context.Context, outboundManager adapter.OutboundManager, history *urltest.HistoryStorage, logger log.Logger, outbounds []adapter.Outbound, link string, interval time.Duration, force bool) map[string]uint16

Types

type Selector

type Selector struct {
	outbound.Adapter
	// contains filtered or unexported fields
}

func (*Selector) All

func (s *Selector) All() []string

func (*Selector) AttachConnection added in v1.14.4

func (s *Selector) AttachConnection(closer io.Closer) func()

func (*Selector) DialContext

func (s *Selector) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)

func (*Selector) ListenPacket

func (s *Selector) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)

func (*Selector) Network

func (s *Selector) Network() []string

func (*Selector) References added in v1.14.3

func (s *Selector) References() []string

func (*Selector) SelectOutbound

func (s *Selector) SelectOutbound(tag string) bool

func (*Selector) Selected added in v1.14.4

func (s *Selector) Selected(network string) adapter.Outbound

func (*Selector) Start

func (s *Selector) Start(stage adapter.StartStage, scope *adapter.Scope) error

type URLTest

type URLTest struct {
	outbound.Adapter
	// contains filtered or unexported fields
}

func (*URLTest) All

func (s *URLTest) All() []string

func (*URLTest) AttachConnection added in v1.14.4

func (s *URLTest) AttachConnection(closer io.Closer) func()

func (*URLTest) CheckOutbounds

func (s *URLTest) CheckOutbounds()

func (*URLTest) DialContext

func (s *URLTest) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)

func (*URLTest) InterfaceUpdated

func (s *URLTest) InterfaceUpdated(ctx context.Context)

func (*URLTest) ListenPacket

func (s *URLTest) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)

func (*URLTest) PerformUpdateCheck added in v1.13.20

func (s *URLTest) PerformUpdateCheck()

func (*URLTest) References added in v1.14.3

func (s *URLTest) References() []string

func (*URLTest) Selected added in v1.14.4

func (s *URLTest) Selected(network string) adapter.Outbound

func (*URLTest) Start

func (s *URLTest) Start(stage adapter.StartStage, scope *adapter.Scope) error

func (*URLTest) URLTest

func (s *URLTest) URLTest(ctx context.Context) (map[string]uint16, error)

type URLTestGroup

type URLTestGroup struct {
	// contains filtered or unexported fields
}

func NewURLTestGroup

func NewURLTestGroup(ctx context.Context, outboundManager adapter.OutboundManager, logger log.Logger, outbounds []adapter.Outbound, link string, interval time.Duration, tolerance uint16, idleTimeout time.Duration, interruptExternalConnections bool) (*URLTestGroup, error)

func (*URLTestGroup) CheckOutbounds

func (g *URLTestGroup) CheckOutbounds(ctx context.Context, 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()

func (*URLTestGroup) URLTest

func (g *URLTestGroup) URLTest(ctx context.Context) (map[string]uint16, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL