瀏覽代碼

Move config to app/point

V2Ray 10 年之前
父節點
當前提交
d585ec0593

+ 0 - 0
config/config.go → app/point/config/config.go


+ 0 - 0
config/errors.go → app/point/config/errors.go


+ 0 - 0
config/json/connection.go → app/point/config/json/connection.go


+ 1 - 1
config/json/json.go → app/point/config/json/json.go

@@ -5,8 +5,8 @@ import (
 	"io/ioutil"
 	"os"
 
+	"github.com/v2ray/v2ray-core/app/point/config"
 	"github.com/v2ray/v2ray-core/common/log"
-	"github.com/v2ray/v2ray-core/config"
 	proxyconfig "github.com/v2ray/v2ray-core/proxy/common/config"
 )
 

+ 1 - 1
config/json/json_test.go → app/point/config/json/json_test.go

@@ -4,7 +4,7 @@ import (
 	"path/filepath"
 	"testing"
 
-	"github.com/v2ray/v2ray-core/config/json"
+	"github.com/v2ray/v2ray-core/app/point/config/json"
 	_ "github.com/v2ray/v2ray-core/proxy/freedom/config/json"
 	_ "github.com/v2ray/v2ray-core/proxy/socks/config/json"
 	_ "github.com/v2ray/v2ray-core/proxy/vmess/config/json"

+ 0 - 0
config/json/log.go → app/point/config/json/log.go


+ 1 - 1
app/point/point.go

@@ -1,10 +1,10 @@
 package point
 
 import (
+	"github.com/v2ray/v2ray-core/app/point/config"
 	"github.com/v2ray/v2ray-core/common/log"
 	v2net "github.com/v2ray/v2ray-core/common/net"
 	"github.com/v2ray/v2ray-core/common/retry"
-	"github.com/v2ray/v2ray-core/config"
 	"github.com/v2ray/v2ray-core/proxy/common/connhandler"
 	"github.com/v2ray/v2ray-core/transport/ray"
 )

+ 1 - 1
app/router/router.go

@@ -1,8 +1,8 @@
 package router
 
 import (
+	"github.com/v2ray/v2ray-core/app/point/config"
 	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/config"
 )
 
 type Router interface {

+ 1 - 1
app/router/wildcard_router/router.go

@@ -1,9 +1,9 @@
 package wildcard_router
 
 import (
+	"github.com/v2ray/v2ray-core/app/point/config"
 	"github.com/v2ray/v2ray-core/app/router"
 	v2net "github.com/v2ray/v2ray-core/common/net"
-	"github.com/v2ray/v2ray-core/config"
 )
 
 type WildcardRouter struct {

+ 1 - 1
release/server/main.go

@@ -8,8 +8,8 @@ import (
 
 	"github.com/v2ray/v2ray-core"
 	"github.com/v2ray/v2ray-core/app/point"
+	jsonconf "github.com/v2ray/v2ray-core/app/point/config/json"
 	"github.com/v2ray/v2ray-core/common/log"
-	jsonconf "github.com/v2ray/v2ray-core/config/json"
 
 	// The following are neccesary as they register handlers in their init functions.
 	_ "github.com/v2ray/v2ray-core/proxy/dokodemo"

+ 1 - 1
testing/mocks/config.go

@@ -1,7 +1,7 @@
 package mocks
 
 import (
-	"github.com/v2ray/v2ray-core/config"
+	"github.com/v2ray/v2ray-core/app/point/config"
 )
 
 type ConnectionConfig struct {