Init: first commit 🎉
This commit is contained in:
20
constant/adapters.go
Normal file
20
constant/adapters.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user