Init: first commit 🎉

This commit is contained in:
Dreamacro
2018-06-10 22:50:03 +08:00
parent 8532718345
commit 4f192ef575
27 changed files with 1451 additions and 0 deletions

20
constant/adapters.go Normal file
View File

@ -0,0 +1,20 @@
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)
}