2016-01-01 17:44:11 -05:00
|
|
|
package internal
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/v2ray/v2ray-core/app"
|
2016-01-02 17:32:18 -05:00
|
|
|
"github.com/v2ray/v2ray-core/proxy"
|
2016-06-14 16:54:08 -04:00
|
|
|
"github.com/v2ray/v2ray-core/transport/internet"
|
2016-01-01 17:44:11 -05:00
|
|
|
)
|
|
|
|
|
2016-06-14 16:54:08 -04:00
|
|
|
type InboundHandlerFactory interface {
|
|
|
|
StreamCapability() internet.StreamConnectionType
|
|
|
|
Create(space app.Space, config interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type OutboundHandlerFactory interface {
|
|
|
|
StreamCapability() internet.StreamConnectionType
|
|
|
|
Create(space app.Space, config interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error)
|
|
|
|
}
|