1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-23 10:37:09 -05:00
v2fly/proxy/internal/creator.go

18 lines
552 B
Go
Raw Normal View History

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