From 621485fd66277fdc02546ecdabba2df0bc0e8d28 Mon Sep 17 00:00:00 2001 From: songzhibin97 <718428482@qq.com> Date: Sun, 29 Aug 2021 16:11:20 +0800 Subject: [PATCH] fix:internal --- cmd/main.go | 4 ++-- {internal => core}/biz/biz_admin.go | 0 {internal => core}/biz/biz_client.go | 0 {internal => core}/biz/biz_handler.go | 0 {internal => core}/biz/biz_manage.go | 0 {internal => core}/biz/biz_message.go | 0 {internal => core}/biz/biz_topic.go | 0 {internal => core}/data/data_admin.go | 2 +- {internal => core}/data/data_client.go | 2 +- {internal => core}/data/data_handler.go | 2 +- {internal => core}/data/data_manage.go | 4 ++-- {internal => core}/data/data_message.go | 0 {internal => core}/data/data_topic.go | 0 {internal => core}/utils/hash.go | 0 14 files changed, 7 insertions(+), 7 deletions(-) rename {internal => core}/biz/biz_admin.go (100%) rename {internal => core}/biz/biz_client.go (100%) rename {internal => core}/biz/biz_handler.go (100%) rename {internal => core}/biz/biz_manage.go (100%) rename {internal => core}/biz/biz_message.go (100%) rename {internal => core}/biz/biz_topic.go (100%) rename {internal => core}/data/data_admin.go (98%) rename {internal => core}/data/data_client.go (96%) rename {internal => core}/data/data_handler.go (95%) rename {internal => core}/data/data_manage.go (96%) rename {internal => core}/data/data_message.go (100%) rename {internal => core}/data/data_topic.go (100%) rename {internal => core}/utils/hash.go (100%) diff --git a/cmd/main.go b/cmd/main.go index 4dbca30..c6488bd 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/flipped-aurora/ws/internal/biz" - "github.com/flipped-aurora/ws/internal/data" + "github.com/flipped-aurora/ws/core/biz" + "github.com/flipped-aurora/ws/core/data" "github.com/gin-gonic/gin" "go.uber.org/zap" diff --git a/internal/biz/biz_admin.go b/core/biz/biz_admin.go similarity index 100% rename from internal/biz/biz_admin.go rename to core/biz/biz_admin.go diff --git a/internal/biz/biz_client.go b/core/biz/biz_client.go similarity index 100% rename from internal/biz/biz_client.go rename to core/biz/biz_client.go diff --git a/internal/biz/biz_handler.go b/core/biz/biz_handler.go similarity index 100% rename from internal/biz/biz_handler.go rename to core/biz/biz_handler.go diff --git a/internal/biz/biz_manage.go b/core/biz/biz_manage.go similarity index 100% rename from internal/biz/biz_manage.go rename to core/biz/biz_manage.go diff --git a/internal/biz/biz_message.go b/core/biz/biz_message.go similarity index 100% rename from internal/biz/biz_message.go rename to core/biz/biz_message.go diff --git a/internal/biz/biz_topic.go b/core/biz/biz_topic.go similarity index 100% rename from internal/biz/biz_topic.go rename to core/biz/biz_topic.go diff --git a/internal/data/data_admin.go b/core/data/data_admin.go similarity index 98% rename from internal/data/data_admin.go rename to core/data/data_admin.go index 1239e6c..00a05ee 100644 --- a/internal/data/data_admin.go +++ b/core/data/data_admin.go @@ -4,7 +4,7 @@ import ( "net/http" "time" - "github.com/flipped-aurora/ws/internal/biz" + "github.com/flipped-aurora/ws/core/biz" "github.com/gin-gonic/gin" "go.uber.org/zap" diff --git a/internal/data/data_client.go b/core/data/data_client.go similarity index 96% rename from internal/data/data_client.go rename to core/data/data_client.go index 44b267d..2f3e0ad 100644 --- a/internal/data/data_client.go +++ b/core/data/data_client.go @@ -3,7 +3,7 @@ package data import ( "sync/atomic" - "github.com/flipped-aurora/ws/internal/biz" + "github.com/flipped-aurora/ws/core/biz" "context" ) diff --git a/internal/data/data_handler.go b/core/data/data_handler.go similarity index 95% rename from internal/data/data_handler.go rename to core/data/data_handler.go index ab353c7..63ba7e6 100644 --- a/internal/data/data_handler.go +++ b/core/data/data_handler.go @@ -4,7 +4,7 @@ import ( "sync" "sync/atomic" - "github.com/flipped-aurora/ws/internal/biz" + "github.com/flipped-aurora/ws/core/biz" ) type Handle struct { diff --git a/internal/data/data_manage.go b/core/data/data_manage.go similarity index 96% rename from internal/data/data_manage.go rename to core/data/data_manage.go index 6de6d5e..d563b45 100644 --- a/internal/data/data_manage.go +++ b/core/data/data_manage.go @@ -6,8 +6,8 @@ import ( "sync" "sync/atomic" - "github.com/flipped-aurora/ws/internal/biz" - "github.com/flipped-aurora/ws/internal/utils" + "github.com/flipped-aurora/ws/core/biz" + "github.com/flipped-aurora/ws/core/utils" ) // Manage 管理所有客户端 diff --git a/internal/data/data_message.go b/core/data/data_message.go similarity index 100% rename from internal/data/data_message.go rename to core/data/data_message.go diff --git a/internal/data/data_topic.go b/core/data/data_topic.go similarity index 100% rename from internal/data/data_topic.go rename to core/data/data_topic.go diff --git a/internal/utils/hash.go b/core/utils/hash.go similarity index 100% rename from internal/utils/hash.go rename to core/utils/hash.go