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) Select ¶
func (selector *Selector) Select(proxy string) StreamInvoker
func (*Selector) SelectPacket ¶
func (selector *Selector) SelectPacket(proxy string) PacketInvoker
Click to show internal directories.
Click to hide internal directories.