v2ray-core/proxy/registry/creator.go

18 lines
487 B
Go
Raw Normal View History

package registry
import (
2016-08-20 18:55:45 +00:00
"v2ray.com/core/app"
2016-10-02 21:43:58 +00:00
v2net "v2ray.com/core/common/net"
2016-08-20 18:55:45 +00:00
"v2ray.com/core/proxy"
)
2016-06-14 20:54:08 +00:00
type InboundHandlerFactory interface {
2016-10-02 21:43:58 +00:00
StreamCapability() v2net.NetworkList
2016-06-14 20:54:08 +00:00
Create(space app.Space, config interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error)
}
type OutboundHandlerFactory interface {
2016-10-02 21:43:58 +00:00
StreamCapability() v2net.NetworkList
2016-06-14 20:54:08 +00:00
Create(space app.Space, config interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error)
}