1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-05 01:38:24 -05:00
v2fly/proxy/registry/creator.go

18 lines
487 B
Go
Raw Normal View History

package registry
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-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)
}