2016-08-17 17:30:15 -04:00
|
|
|
package registry
|
2016-01-01 17:44:11 -05:00
|
|
|
|
|
|
|
import (
|
2016-08-20 14:55:45 -04:00
|
|
|
"v2ray.com/core/app"
|
2016-10-02 17:43:58 -04:00
|
|
|
v2net "v2ray.com/core/common/net"
|
2016-08-20 14:55:45 -04:00
|
|
|
"v2ray.com/core/proxy"
|
2016-01-01 17:44:11 -05:00
|
|
|
)
|
|
|
|
|
2016-06-14 16:54:08 -04:00
|
|
|
type InboundHandlerFactory interface {
|
2016-10-02 17:43:58 -04:00
|
|
|
StreamCapability() v2net.NetworkList
|
2016-06-14 16:54:08 -04:00
|
|
|
Create(space app.Space, config interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type OutboundHandlerFactory interface {
|
2016-10-02 17:43:58 -04:00
|
|
|
StreamCapability() v2net.NetworkList
|
2016-06-14 16:54:08 -04:00
|
|
|
Create(space app.Space, config interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error)
|
|
|
|
}
|