v2ray-core/proxy/registry/creator.go

18 lines
513 B
Go
Raw Normal View History

package registry
import (
2016-08-20 18:55:45 +00:00
"v2ray.com/core/app"
"v2ray.com/core/proxy"
"v2ray.com/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)
}