refactor proxy registry

This commit is contained in:
Darien Raymond committed 2016-12-15 15:46:20 +01:00
1 parent 4c7faadfb9
commit 1ab02e0a6b
14 files changed
+38 -49

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
package proxy
import (
"v2ray.com/core/app"
v2net "v2ray.com/core/common/net"
)
type InboundHandlerFactory interface {
StreamCapability() v2net.NetworkList
Create(space app.Space, config interface{}, meta *InboundHandlerMeta) (InboundHandler, error)
}
type OutboundHandlerFactory interface {
StreamCapability() v2net.NetworkList
Create(space app.Space, config interface{}, meta *OutboundHandlerMeta) (OutboundHandler, error)
}