From a60104d73db7707dd39d23c01c54c88107aca2bd Mon Sep 17 00:00:00 2001 From: 0ceanSlim Date: Tue, 23 Jul 2024 08:39:36 -0400 Subject: [PATCH] other packages moved into server package --- main.go | 6 +++--- {db => server/db}/db.go | 0 {events => server/events}/events.go | 0 {events => server/events}/kind0.go | 0 {events => server/events}/kind1.go | 0 {events => server/events}/unhandled.go | 0 server/server.go | 4 ++-- {utils => server/utils}/config.go | 0 {utils => server/utils}/typeConversion.go | 0 9 files changed, 5 insertions(+), 5 deletions(-) rename {db => server/db}/db.go (100%) rename {events => server/events}/events.go (100%) rename {events => server/events}/kind0.go (100%) rename {events => server/events}/kind1.go (100%) rename {events => server/events}/unhandled.go (100%) rename {utils => server/utils}/config.go (100%) rename {utils => server/utils}/typeConversion.go (100%) diff --git a/main.go b/main.go index 9882416..bc07424 100644 --- a/main.go +++ b/main.go @@ -5,10 +5,10 @@ import ( "log" "net/http" - "grain/db" - "grain/events" "grain/server" - "grain/utils" + "grain/server/db" + "grain/server/events" + "grain/server/utils" "golang.org/x/net/websocket" ) diff --git a/db/db.go b/server/db/db.go similarity index 100% rename from db/db.go rename to server/db/db.go diff --git a/events/events.go b/server/events/events.go similarity index 100% rename from events/events.go rename to server/events/events.go diff --git a/events/kind0.go b/server/events/kind0.go similarity index 100% rename from events/kind0.go rename to server/events/kind0.go diff --git a/events/kind1.go b/server/events/kind1.go similarity index 100% rename from events/kind1.go rename to server/events/kind1.go diff --git a/events/unhandled.go b/server/events/unhandled.go similarity index 100% rename from events/unhandled.go rename to server/events/unhandled.go diff --git a/server/server.go b/server/server.go index 3c41aaf..a6f7c47 100644 --- a/server/server.go +++ b/server/server.go @@ -4,9 +4,9 @@ import ( "context" "encoding/json" "fmt" - "grain/events" + "grain/server/events" server "grain/server/types" - "grain/utils" + "grain/server/utils" "go.mongodb.org/mongo-driver/mongo" "golang.org/x/net/websocket" diff --git a/utils/config.go b/server/utils/config.go similarity index 100% rename from utils/config.go rename to server/utils/config.go diff --git a/utils/typeConversion.go b/server/utils/typeConversion.go similarity index 100% rename from utils/typeConversion.go rename to server/utils/typeConversion.go