diff --git a/core/connection.go b/core/connection.go index e704836..5b5a26d 100644 --- a/core/connection.go +++ b/core/connection.go @@ -3,9 +3,9 @@ package core import ( "errors" "fmt" - "git.noahlan.cn/northlan/nnet/internal/log" - "git.noahlan.cn/northlan/nnet/internal/packet" "git.noahlan.cn/northlan/nnet/internal/pool" + "git.noahlan.cn/northlan/nnet/log" + "git.noahlan.cn/northlan/nnet/packet" "git.noahlan.cn/northlan/nnet/scheduler" "git.noahlan.cn/northlan/nnet/session" "net" diff --git a/core/engine.go b/core/engine.go index d333126..40c1b4c 100644 --- a/core/engine.go +++ b/core/engine.go @@ -2,9 +2,9 @@ package core import ( "errors" - "git.noahlan.cn/northlan/nnet/internal/log" - "git.noahlan.cn/northlan/nnet/internal/packet" "git.noahlan.cn/northlan/nnet/internal/pool" + "git.noahlan.cn/northlan/nnet/log" + "git.noahlan.cn/northlan/nnet/packet" "git.noahlan.cn/northlan/nnet/scheduler" "git.noahlan.cn/northlan/nnet/serialize" "git.noahlan.cn/northlan/nnet/session" diff --git a/core/nnet_router.go b/core/nnet_router.go index ce97f30..99a9999 100644 --- a/core/nnet_router.go +++ b/core/nnet_router.go @@ -2,8 +2,8 @@ package core import ( "errors" - "git.noahlan.cn/northlan/nnet/internal/log" - "git.noahlan.cn/northlan/nnet/internal/packet" + "git.noahlan.cn/northlan/nnet/log" + "git.noahlan.cn/northlan/nnet/packet" ) type nNetRouter struct { diff --git a/core/processor.go b/core/processor.go index 403818e..f7e3059 100644 --- a/core/processor.go +++ b/core/processor.go @@ -1,6 +1,6 @@ package core -import "git.noahlan.cn/northlan/nnet/internal/packet" +import "git.noahlan.cn/northlan/nnet/packet" type ( Processor interface { diff --git a/core/processor_nnet.go b/core/processor_nnet.go index b20a40a..5cb66a5 100644 --- a/core/processor_nnet.go +++ b/core/processor_nnet.go @@ -4,8 +4,8 @@ import ( "encoding/json" "errors" "fmt" - "git.noahlan.cn/northlan/nnet/internal/log" - "git.noahlan.cn/northlan/nnet/internal/packet" + "git.noahlan.cn/northlan/nnet/log" + "git.noahlan.cn/northlan/nnet/packet" "time" ) diff --git a/core/server.go b/core/server.go index cd8d61a..d4af948 100644 --- a/core/server.go +++ b/core/server.go @@ -2,8 +2,8 @@ package core import ( "git.noahlan.cn/northlan/nnet/internal/env" - "git.noahlan.cn/northlan/nnet/internal/log" - "git.noahlan.cn/northlan/nnet/internal/packet" + "git.noahlan.cn/northlan/nnet/log" + "git.noahlan.cn/northlan/nnet/packet" "git.noahlan.cn/northlan/nnet/serialize" "net/http" "time" diff --git a/core/server_test.go b/core/server_test.go index b4a4c13..0240645 100644 --- a/core/server_test.go +++ b/core/server_test.go @@ -2,8 +2,8 @@ package core import ( "fmt" - "git.noahlan.cn/northlan/nnet/internal/log" - "git.noahlan.cn/northlan/nnet/internal/packet" + "git.noahlan.cn/northlan/nnet/log" + "git.noahlan.cn/northlan/nnet/packet" "testing" "time" ) diff --git a/core/types.go b/core/types.go index 6ffc16b..2c644f7 100644 --- a/core/types.go +++ b/core/types.go @@ -1,6 +1,6 @@ package core -import "git.noahlan.cn/northlan/nnet/internal/packet" +import "git.noahlan.cn/northlan/nnet/packet" type ( Handler interface { diff --git a/internal/log/logger.go b/log/logger.go similarity index 100% rename from internal/log/logger.go rename to log/logger.go diff --git a/internal/packet/packer_nnet.go b/packet/packer_nnet.go similarity index 100% rename from internal/packet/packer_nnet.go rename to packet/packer_nnet.go diff --git a/internal/packet/packer_nnet_test.go b/packet/packer_nnet_test.go similarity index 100% rename from internal/packet/packer_nnet_test.go rename to packet/packer_nnet_test.go diff --git a/internal/packet/packet.go b/packet/packet.go similarity index 100% rename from internal/packet/packet.go rename to packet/packet.go diff --git a/internal/packet/packet_nnet.go b/packet/packet_nnet.go similarity index 100% rename from internal/packet/packet_nnet.go rename to packet/packet_nnet.go diff --git a/scheduler/scheduler.go b/scheduler/scheduler.go index 3155275..f0fd2a4 100644 --- a/scheduler/scheduler.go +++ b/scheduler/scheduler.go @@ -2,7 +2,7 @@ package scheduler import ( "git.noahlan.cn/northlan/nnet/internal/env" - "git.noahlan.cn/northlan/nnet/internal/log" + "git.noahlan.cn/northlan/nnet/log" "runtime/debug" "sync/atomic" "time" diff --git a/scheduler/timer.go b/scheduler/timer.go index 586f30d..e9815aa 100644 --- a/scheduler/timer.go +++ b/scheduler/timer.go @@ -1,7 +1,7 @@ package scheduler import ( - "git.noahlan.cn/northlan/nnet/internal/log" + "git.noahlan.cn/northlan/nnet/log" "math" "runtime/debug" "sync" diff --git a/serialize/json/json.go b/serialize/json/json.go index 28003b6..b75bd17 100644 --- a/serialize/json/json.go +++ b/serialize/json/json.go @@ -2,7 +2,7 @@ package json import ( "encoding/json" - "git.noahlan.cn/northlan/nnet/core/serialize" + "git.noahlan.cn/northlan/nnet/serialize" ) type Serializer struct{} diff --git a/serialize/protobuf/protobuf.go b/serialize/protobuf/protobuf.go index ec69388..88bff2d 100644 --- a/serialize/protobuf/protobuf.go +++ b/serialize/protobuf/protobuf.go @@ -2,7 +2,7 @@ package protobuf import ( "errors" - "git.noahlan.cn/northlan/nnet/core/serialize" + "git.noahlan.cn/northlan/nnet/serialize" "google.golang.org/protobuf/proto" )