v2ray-core/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 22:32:18 +00:00
"github.com/v2ray/v2ray-core/proxy"
2016-06-14 20:54:08 +00:00
"github.com/v2ray/v2ray-core/transport/internet"
)
2016-06-14 20:54:08 +00: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)
}