Improve: Dial
would reset proxy alive status
This commit is contained in:
@ -23,13 +23,20 @@ type ServerAdapter interface {
|
||||
Close()
|
||||
}
|
||||
|
||||
type Proxy interface {
|
||||
type ProxyAdapter interface {
|
||||
Name() string
|
||||
Type() AdapterType
|
||||
Dial(metadata *Metadata) (net.Conn, error)
|
||||
Destroy()
|
||||
MarshalJSON() ([]byte, error)
|
||||
}
|
||||
|
||||
type Proxy interface {
|
||||
ProxyAdapter
|
||||
Alive() bool
|
||||
URLTest(url string) (int16, error)
|
||||
}
|
||||
|
||||
// AdapterType is enum of adapter type
|
||||
type AdapterType int
|
||||
|
||||
|
Reference in New Issue
Block a user