1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-17 01:16:26 -04:00
v2fly/proxy/internal/creator.go
2016-06-04 00:38:22 +02:00

11 lines
418 B
Go

package internal
import (
"github.com/v2ray/v2ray-core/app"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/proxy"
)
type InboundHandlerCreator func(space app.Space, config interface{}, listenOn v2net.Address, port v2net.Port) (proxy.InboundHandler, error)
type OutboundHandlerCreator func(space app.Space, config interface{}, sendThrough v2net.Address) (proxy.OutboundHandler, error)