2016-01-01 23:44:11 +01:00
|
|
|
// Package proxy contains all proxies used by V2Ray.
|
|
|
|
|
|
|
|
package proxy
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/v2ray/v2ray-core/app"
|
|
|
|
"github.com/v2ray/v2ray-core/proxy/common/connhandler"
|
|
|
|
"github.com/v2ray/v2ray-core/proxy/internal"
|
|
|
|
)
|
|
|
|
|
2016-01-02 17:40:51 +01:00
|
|
|
func CreateInboundConnectionHandler(name string, space app.Space, rawConfig []byte) (connhandler.InboundConnectionHandler, error) {
|
2016-01-02 23:08:36 +01:00
|
|
|
return internal.CreateInboundConnectionHandler(name, space, rawConfig)
|
2016-01-01 23:44:11 +01:00
|
|
|
}
|
|
|
|
|
2016-01-02 17:40:51 +01:00
|
|
|
func CreateOutboundConnectionHandler(name string, space app.Space, rawConfig []byte) (connhandler.OutboundConnectionHandler, error) {
|
2016-01-02 23:08:36 +01:00
|
|
|
return internal.CreateOutboundConnectionHandler(name, space, rawConfig)
|
2016-01-01 23:44:11 +01:00
|
|
|
}
|