mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 06:53:13 +08:00
21 lines
250 B
Go
21 lines
250 B
Go
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)
|
|
}
|