From ac62f7d64e969e5cbfdc1b826f0c9fac1b456e03 Mon Sep 17 00:00:00 2001 From: CPunch Date: Sat, 2 Dec 2023 22:09:11 -0600 Subject: [PATCH] moved config/ -> internal/config --- cmd/login.go | 2 +- cmd/main.go | 2 +- cmd/shard.go | 2 +- cnet/service.go | 2 +- {config => internal/config}/config.go | 0 internal/db/players.go | 2 +- internal/db/schema.go | 2 +- internal/redis/login.go | 2 +- internal/redis/redis.go | 2 +- login/login.go | 2 +- shard/entity/chunk.go | 2 +- shard/npcloader.go | 2 +- shard/shardserver.go | 2 +- 13 files changed, 12 insertions(+), 12 deletions(-) rename {config => internal/config}/config.go (100%) diff --git a/cmd/login.go b/cmd/login.go index b564eed..cde005f 100644 --- a/cmd/login.go +++ b/cmd/login.go @@ -5,7 +5,7 @@ import ( "flag" "log" - "github.com/CPunch/gopenfusion/config" + "github.com/CPunch/gopenfusion/internal/config" "github.com/CPunch/gopenfusion/login" "github.com/google/subcommands" ) diff --git a/cmd/main.go b/cmd/main.go index 7b6ec67..4099f74 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -6,7 +6,7 @@ import ( "log" "os" - "github.com/CPunch/gopenfusion/config" + "github.com/CPunch/gopenfusion/internal/config" "github.com/CPunch/gopenfusion/internal/db" "github.com/CPunch/gopenfusion/internal/redis" diff --git a/cmd/shard.go b/cmd/shard.go index 0ed1653..c6d92ca 100644 --- a/cmd/shard.go +++ b/cmd/shard.go @@ -5,7 +5,7 @@ import ( "flag" "log" - "github.com/CPunch/gopenfusion/config" + "github.com/CPunch/gopenfusion/internal/config" "github.com/CPunch/gopenfusion/shard" "github.com/google/subcommands" ) diff --git a/cnet/service.go b/cnet/service.go index b17aeb5..75f1540 100644 --- a/cnet/service.go +++ b/cnet/service.go @@ -11,7 +11,7 @@ import ( "sync" "github.com/CPunch/gopenfusion/cnet/protocol" - "github.com/CPunch/gopenfusion/config" + "github.com/CPunch/gopenfusion/internal/config" ) type PacketHandler func(peer *Peer, pkt protocol.Packet) error diff --git a/config/config.go b/internal/config/config.go similarity index 100% rename from config/config.go rename to internal/config/config.go diff --git a/internal/db/players.go b/internal/db/players.go index 8c0e6de..9e87f62 100644 --- a/internal/db/players.go +++ b/internal/db/players.go @@ -4,7 +4,7 @@ import ( "database/sql" "github.com/CPunch/gopenfusion/cnet/protocol" - "github.com/CPunch/gopenfusion/config" + "github.com/CPunch/gopenfusion/internal/config" "github.com/blockloop/scan" ) diff --git a/internal/db/schema.go b/internal/db/schema.go index fd47060..a1b6f37 100644 --- a/internal/db/schema.go +++ b/internal/db/schema.go @@ -10,7 +10,7 @@ import ( _ "embed" "fmt" - "github.com/CPunch/gopenfusion/config" + "github.com/CPunch/gopenfusion/internal/config" _ "github.com/lib/pq" ) diff --git a/internal/redis/login.go b/internal/redis/login.go index b4c5c39..d518c4e 100644 --- a/internal/redis/login.go +++ b/internal/redis/login.go @@ -5,7 +5,7 @@ import ( "fmt" "strconv" - "github.com/CPunch/gopenfusion/config" + "github.com/CPunch/gopenfusion/internal/config" ) type LoginMetadata struct { diff --git a/internal/redis/redis.go b/internal/redis/redis.go index 8e968d1..f424a46 100644 --- a/internal/redis/redis.go +++ b/internal/redis/redis.go @@ -7,7 +7,7 @@ package redis import ( "context" - "github.com/CPunch/gopenfusion/config" + "github.com/CPunch/gopenfusion/internal/config" "github.com/redis/go-redis/v9" ) diff --git a/login/login.go b/login/login.go index 67bb645..6d37282 100644 --- a/login/login.go +++ b/login/login.go @@ -9,7 +9,7 @@ import ( "github.com/CPunch/gopenfusion/cnet" "github.com/CPunch/gopenfusion/cnet/protocol" - "github.com/CPunch/gopenfusion/config" + "github.com/CPunch/gopenfusion/internal/config" "github.com/CPunch/gopenfusion/internal/db" "github.com/CPunch/gopenfusion/internal/redis" "github.com/CPunch/gopenfusion/util" diff --git a/shard/entity/chunk.go b/shard/entity/chunk.go index 6e58e49..86a8989 100644 --- a/shard/entity/chunk.go +++ b/shard/entity/chunk.go @@ -4,7 +4,7 @@ import ( "log" "sync" - "github.com/CPunch/gopenfusion/config" + "github.com/CPunch/gopenfusion/internal/config" ) type ChunkPosition struct { diff --git a/shard/npcloader.go b/shard/npcloader.go index c5e58f0..79b4275 100644 --- a/shard/npcloader.go +++ b/shard/npcloader.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/CPunch/gopenfusion/config" + "github.com/CPunch/gopenfusion/internal/config" "github.com/CPunch/gopenfusion/shard/entity" ) diff --git a/shard/shardserver.go b/shard/shardserver.go index bff7cd9..d8f22a2 100644 --- a/shard/shardserver.go +++ b/shard/shardserver.go @@ -5,7 +5,7 @@ import ( "github.com/CPunch/gopenfusion/cnet" "github.com/CPunch/gopenfusion/cnet/protocol" - "github.com/CPunch/gopenfusion/config" + "github.com/CPunch/gopenfusion/internal/config" "github.com/CPunch/gopenfusion/internal/db" "github.com/CPunch/gopenfusion/internal/redis" "github.com/CPunch/gopenfusion/shard/entity"