From e8240c9c385c07d4f4c08026692d9d02385ea1be Mon Sep 17 00:00:00 2001 From: maru Date: Mon, 29 Apr 2024 15:22:27 -0400 Subject: [PATCH] Rename to rogueserver --- .gitignore | 2 +- README.md | 2 +- api/account/changepw.go | 2 +- api/account/info.go | 2 +- api/account/login.go | 2 +- api/account/logout.go | 2 +- api/account/register.go | 2 +- api/common.go | 6 +++--- api/daily/common.go | 2 +- api/daily/rankings.go | 4 ++-- api/daily/rankingspagecount.go | 2 +- api/endpoints.go | 10 +++++----- api/savedata/clear.go | 4 ++-- api/savedata/common.go | 2 +- api/savedata/delete.go | 4 ++-- api/savedata/get.go | 4 ++-- api/savedata/update.go | 4 ++-- api/stats.go | 2 +- db/account.go | 2 +- db/daily.go | 2 +- go.mod | 2 +- pokerogue-server.go => rogueserver.go | 4 ++-- 22 files changed, 34 insertions(+), 34 deletions(-) rename pokerogue-server.go => rogueserver.go (95%) diff --git a/.gitignore b/.gitignore index 09245dc..3f83014 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # no extension on linux, .exe on windows -pokerogue-server* +rogueserver* userdata/* secret.key diff --git a/README.md b/README.md index 4b776d8..8cbd26b 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# pokerogue-server \ No newline at end of file +# rogueserver \ No newline at end of file diff --git a/api/account/changepw.go b/api/account/changepw.go index a91f230..1634f0b 100644 --- a/api/account/changepw.go +++ b/api/account/changepw.go @@ -4,7 +4,7 @@ import ( "crypto/rand" "fmt" - "github.com/pagefaultgames/pokerogue-server/db" + "github.com/pagefaultgames/rogueserver/db" ) func ChangePW(uuid []byte, password string) error { diff --git a/api/account/info.go b/api/account/info.go index de8c6fc..8e82e77 100644 --- a/api/account/info.go +++ b/api/account/info.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - "github.com/pagefaultgames/pokerogue-server/defs" + "github.com/pagefaultgames/rogueserver/defs" ) type InfoResponse struct { diff --git a/api/account/login.go b/api/account/login.go index 809110c..002b3b4 100644 --- a/api/account/login.go +++ b/api/account/login.go @@ -7,7 +7,7 @@ import ( "encoding/base64" "fmt" - "github.com/pagefaultgames/pokerogue-server/db" + "github.com/pagefaultgames/rogueserver/db" ) type LoginResponse GenericAuthResponse diff --git a/api/account/logout.go b/api/account/logout.go index aec856e..ebd3a74 100644 --- a/api/account/logout.go +++ b/api/account/logout.go @@ -4,7 +4,7 @@ import ( "database/sql" "fmt" - "github.com/pagefaultgames/pokerogue-server/db" + "github.com/pagefaultgames/rogueserver/db" ) // /account/logout - log out of account diff --git a/api/account/register.go b/api/account/register.go index c4be2e3..c80cfe0 100644 --- a/api/account/register.go +++ b/api/account/register.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - "github.com/pagefaultgames/pokerogue-server/db" + "github.com/pagefaultgames/rogueserver/db" ) // /account/register - register account diff --git a/api/common.go b/api/common.go index b4b1bfe..c7dd34b 100644 --- a/api/common.go +++ b/api/common.go @@ -6,9 +6,9 @@ import ( "log" "net/http" - "github.com/pagefaultgames/pokerogue-server/api/account" - "github.com/pagefaultgames/pokerogue-server/api/daily" - "github.com/pagefaultgames/pokerogue-server/db" + "github.com/pagefaultgames/rogueserver/api/account" + "github.com/pagefaultgames/rogueserver/api/daily" + "github.com/pagefaultgames/rogueserver/db" ) func Init(mux *http.ServeMux) { diff --git a/api/daily/common.go b/api/daily/common.go index f20ab2c..33b2ecb 100644 --- a/api/daily/common.go +++ b/api/daily/common.go @@ -10,7 +10,7 @@ import ( "os" "time" - "github.com/pagefaultgames/pokerogue-server/db" + "github.com/pagefaultgames/rogueserver/db" "github.com/robfig/cron/v3" ) diff --git a/api/daily/rankings.go b/api/daily/rankings.go index daaf7cf..be675e9 100644 --- a/api/daily/rankings.go +++ b/api/daily/rankings.go @@ -3,8 +3,8 @@ package daily import ( "log" - "github.com/pagefaultgames/pokerogue-server/db" - "github.com/pagefaultgames/pokerogue-server/defs" + "github.com/pagefaultgames/rogueserver/db" + "github.com/pagefaultgames/rogueserver/defs" ) // /daily/rankings - fetch daily rankings diff --git a/api/daily/rankingspagecount.go b/api/daily/rankingspagecount.go index a1f4ac2..9deb09d 100644 --- a/api/daily/rankingspagecount.go +++ b/api/daily/rankingspagecount.go @@ -3,7 +3,7 @@ package daily import ( "log" - "github.com/pagefaultgames/pokerogue-server/db" + "github.com/pagefaultgames/rogueserver/db" ) // /daily/rankingpagecount - fetch daily ranking page count diff --git a/api/endpoints.go b/api/endpoints.go index aff1365..87f0d20 100644 --- a/api/endpoints.go +++ b/api/endpoints.go @@ -6,11 +6,11 @@ import ( "net/http" "strconv" - "github.com/pagefaultgames/pokerogue-server/api/account" - "github.com/pagefaultgames/pokerogue-server/api/daily" - "github.com/pagefaultgames/pokerogue-server/api/savedata" - "github.com/pagefaultgames/pokerogue-server/db" - "github.com/pagefaultgames/pokerogue-server/defs" + "github.com/pagefaultgames/rogueserver/api/account" + "github.com/pagefaultgames/rogueserver/api/daily" + "github.com/pagefaultgames/rogueserver/api/savedata" + "github.com/pagefaultgames/rogueserver/db" + "github.com/pagefaultgames/rogueserver/defs" ) /* diff --git a/api/savedata/clear.go b/api/savedata/clear.go index 1d6552f..b934571 100644 --- a/api/savedata/clear.go +++ b/api/savedata/clear.go @@ -7,8 +7,8 @@ import ( "os" "strconv" - "github.com/pagefaultgames/pokerogue-server/db" - "github.com/pagefaultgames/pokerogue-server/defs" + "github.com/pagefaultgames/rogueserver/db" + "github.com/pagefaultgames/rogueserver/defs" ) type ClearResponse struct { diff --git a/api/savedata/common.go b/api/savedata/common.go index bca7064..20dc661 100644 --- a/api/savedata/common.go +++ b/api/savedata/common.go @@ -8,7 +8,7 @@ import ( "strconv" "github.com/klauspost/compress/zstd" - "github.com/pagefaultgames/pokerogue-server/defs" + "github.com/pagefaultgames/rogueserver/defs" ) func readSystemSaveData(uuid []byte) (defs.SystemSaveData, error) { diff --git a/api/savedata/delete.go b/api/savedata/delete.go index 97b625b..d2c6353 100644 --- a/api/savedata/delete.go +++ b/api/savedata/delete.go @@ -6,8 +6,8 @@ import ( "os" "strconv" - "github.com/pagefaultgames/pokerogue-server/db" - "github.com/pagefaultgames/pokerogue-server/defs" + "github.com/pagefaultgames/rogueserver/db" + "github.com/pagefaultgames/rogueserver/defs" ) // /savedata/delete - delete save data diff --git a/api/savedata/get.go b/api/savedata/get.go index 0d93e30..3a33b6d 100644 --- a/api/savedata/get.go +++ b/api/savedata/get.go @@ -4,8 +4,8 @@ import ( "fmt" "strconv" - "github.com/pagefaultgames/pokerogue-server/db" - "github.com/pagefaultgames/pokerogue-server/defs" + "github.com/pagefaultgames/rogueserver/db" + "github.com/pagefaultgames/rogueserver/defs" ) // /savedata/get - get save data diff --git a/api/savedata/update.go b/api/savedata/update.go index 1ecdb01..264142f 100644 --- a/api/savedata/update.go +++ b/api/savedata/update.go @@ -9,8 +9,8 @@ import ( "strconv" "github.com/klauspost/compress/zstd" - "github.com/pagefaultgames/pokerogue-server/db" - "github.com/pagefaultgames/pokerogue-server/defs" + "github.com/pagefaultgames/rogueserver/db" + "github.com/pagefaultgames/rogueserver/defs" ) var zstdEncoder, _ = zstd.NewWriter(nil) diff --git a/api/stats.go b/api/stats.go index f67fa1e..7086e52 100644 --- a/api/stats.go +++ b/api/stats.go @@ -4,7 +4,7 @@ import ( "log" "time" - "github.com/pagefaultgames/pokerogue-server/db" + "github.com/pagefaultgames/rogueserver/db" "github.com/robfig/cron/v3" ) diff --git a/db/account.go b/db/account.go index 3c66d39..e6a90fe 100644 --- a/db/account.go +++ b/db/account.go @@ -6,7 +6,7 @@ import ( "slices" _ "github.com/go-sql-driver/mysql" - "github.com/pagefaultgames/pokerogue-server/defs" + "github.com/pagefaultgames/rogueserver/defs" ) func AddAccountRecord(uuid []byte, username string, key, salt []byte) error { diff --git a/db/daily.go b/db/daily.go index c9908ca..4a068a7 100644 --- a/db/daily.go +++ b/db/daily.go @@ -3,7 +3,7 @@ package db import ( "math" - "github.com/pagefaultgames/pokerogue-server/defs" + "github.com/pagefaultgames/rogueserver/defs" ) func TryAddDailyRun(seed string) error { diff --git a/go.mod b/go.mod index 6675c3e..ed86e1f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/pagefaultgames/pokerogue-server +module github.com/pagefaultgames/rogueserver go 1.22 diff --git a/pokerogue-server.go b/rogueserver.go similarity index 95% rename from pokerogue-server.go rename to rogueserver.go index a197fe3..770858d 100644 --- a/pokerogue-server.go +++ b/rogueserver.go @@ -8,8 +8,8 @@ import ( "net/http" "os" - "github.com/pagefaultgames/pokerogue-server/api" - "github.com/pagefaultgames/pokerogue-server/db" + "github.com/pagefaultgames/rogueserver/api" + "github.com/pagefaultgames/rogueserver/db" ) func main() {