mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-13 22:45:13 +00:00
refactor proxy registry
This commit is contained in:
14 files changed
+38
-49
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package proxy
|
||||
|
||||
import (
|
||||
"v2ray.com/core/app"
|
||||
v2net "v2ray.com/core/common/net"
|
||||
)
|
||||
|
||||
type InboundHandlerFactory interface {
|
||||
StreamCapability() v2net.NetworkList
|
||||
Create(space app.Space, config interface{}, meta *InboundHandlerMeta) (InboundHandler, error)
|
||||
}
|
||||
|
||||
type OutboundHandlerFactory interface {
|
||||
StreamCapability() v2net.NetworkList
|
||||
Create(space app.Space, config interface{}, meta *OutboundHandlerMeta) (OutboundHandler, error)
|
||||
}
|
||||
Reference in new issue
Block a user