Documentation ¶
Index ¶
- func NewDialer(s []string, c *Config) proxy.Dialer
- type Checker
- type Config
- type Dialer
- func (d *Dialer) Addr() string
- func (d *Dialer) Check()
- func (d *Dialer) Dial(network, addr string) (net.Conn, error)
- func (d *Dialer) DialUDP(network, addr string) (pc net.PacketConn, writeTo net.Addr, err error)
- func (d *Dialer) NextDialer(dstAddr string) proxy.Dialer
- func (d *Dialer) Priority() uint32
- func (d *Dialer) SetPriority(p uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Strategy string CheckWebSite string CheckInterval int MaxFailures int IntFace string }
Config of strategy
type Dialer ¶
type Dialer struct {
// contains filtered or unexported fields
}
Dialer .
func (*Dialer) NextDialer ¶
NextDialer returns the next dialer
func (*Dialer) SetPriority ¶
SetPriority sets the active priority of rrDialer
Click to show internal directories.
Click to hide internal directories.