hide space implementations from interfaces

This commit is contained in:
Darien Raymond committed 2015-12-11 11:01:20 +00:00
1 parent 46ab9c45cc
commit dd81fc6f6a
23 files changed
+162 -119

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ type InboundConnectionHandlerWithPort struct {
// Handler for inbound detour connections.
type InboundDetourHandler struct {
space *app.Space
space app.Space
config InboundDetourConfig
ich []*InboundConnectionHandlerWithPort
}
+3 -2
View File
@@ -6,6 +6,7 @@ package point
import (
"github.com/v2ray/v2ray-core/app"
"github.com/v2ray/v2ray-core/app/controller"
"github.com/v2ray/v2ray-core/app/router"
"github.com/v2ray/v2ray-core/common/log"
v2net "github.com/v2ray/v2ray-core/common/net"
@@ -22,7 +23,7 @@ type Point struct {
idh []*InboundDetourHandler
odh map[string]connhandler.OutboundConnectionHandler
router router.Router
space *app.SpaceController
space *controller.SpaceController
}
// NewPoint returns a new Point server based on given configuration.
@@ -50,7 +51,7 @@ func NewPoint(pConfig PointConfig) (*Point, error) {
log.SetLogLevel(logConfig.LogLevel())
}
vpoint.space = app.NewSpaceController()
vpoint.space = controller.New()
vpoint.space.Bind(vpoint)
ichFactory := connhandler.GetInboundConnectionHandlerFactory(pConfig.InboundConfig().Protocol())