selector

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProxySelector = NewSelector()

Functions

This section is empty.

Types

type PacketInvoker

type PacketInvoker interface {
	Invoke(net.PacketConn, string) error
}

type PacketInvokerFunc

type PacketInvokerFunc func(net.PacketConn, string) error

func (PacketInvokerFunc) Invoke

func (f PacketInvokerFunc) Invoke(c net.PacketConn, s string) error

type Selector

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

func NewSelector

func NewSelector() *Selector

func (*Selector) AddPacketProxy

func (selector *Selector) AddPacketProxy(proxy string, ctx ctxv.V)

func (*Selector) AddProxy

func (selector *Selector) AddProxy(proxy string, ctx ctxv.V)

func (*Selector) Select

func (selector *Selector) Select(proxy string) StreamInvoker

func (*Selector) SelectPacket

func (selector *Selector) SelectPacket(proxy string) PacketInvoker

type StreamInvoker

type StreamInvoker interface {
	Invoke(net.Conn, string) error
}

type StreamInvokerFunc

type StreamInvokerFunc func(net.Conn, string) error

func (StreamInvokerFunc) Invoke

func (f StreamInvokerFunc) Invoke(c net.Conn, s string) error

Jump to

Keyboard shortcuts

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