1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-08-10 14:34:41 -04:00
v2fly/proxy/registry/creator.go

18 lines
552 B
Go
Raw Normal View History

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