Rename to rogueserver

oauth2
maru 2024-04-29 15:22:27 -04:00
parent b52abbf7fe
commit e8240c9c38
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
22 changed files with 34 additions and 34 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
# no extension on linux, .exe on windows
pokerogue-server*
rogueserver*
userdata/*
secret.key

View File

@ -1 +1 @@
# pokerogue-server
# rogueserver

View File

@ -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 {

View File

@ -6,7 +6,7 @@ import (
"strconv"
"time"
"github.com/pagefaultgames/pokerogue-server/defs"
"github.com/pagefaultgames/rogueserver/defs"
)
type InfoResponse struct {

View File

@ -7,7 +7,7 @@ import (
"encoding/base64"
"fmt"
"github.com/pagefaultgames/pokerogue-server/db"
"github.com/pagefaultgames/rogueserver/db"
)
type LoginResponse GenericAuthResponse

View File

@ -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

View File

@ -5,7 +5,7 @@ import (
"fmt"
"os"
"github.com/pagefaultgames/pokerogue-server/db"
"github.com/pagefaultgames/rogueserver/db"
)
// /account/register - register account

View File

@ -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) {

View File

@ -10,7 +10,7 @@ import (
"os"
"time"
"github.com/pagefaultgames/pokerogue-server/db"
"github.com/pagefaultgames/rogueserver/db"
"github.com/robfig/cron/v3"
)

View File

@ -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

View File

@ -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

View File

@ -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"
)
/*

View File

@ -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 {

View File

@ -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) {

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -4,7 +4,7 @@ import (
"log"
"time"
"github.com/pagefaultgames/pokerogue-server/db"
"github.com/pagefaultgames/rogueserver/db"
"github.com/robfig/cron/v3"
)

View File

@ -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 {

View File

@ -3,7 +3,7 @@ package db
import (
"math"
"github.com/pagefaultgames/pokerogue-server/defs"
"github.com/pagefaultgames/rogueserver/defs"
)
func TryAddDailyRun(seed string) error {

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/pagefaultgames/pokerogue-server
module github.com/pagefaultgames/rogueserver
go 1.22

View File

@ -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() {