mihomo/constant/adapters.go

21 lines
250 B
Go
Raw Normal View History

2018-06-10 22:50:03 +08:00
package constant
import (
"io"
)
type ProxyAdapter interface {
Writer() io.Writer
Reader() io.Reader
Close()
}
type ServerAdapter interface {
Addr() *Addr
ProxyAdapter
}
type Proxy interface {
Generator(addr *Addr) (ProxyAdapter, error)
}