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 # no extension on linux, .exe on windows
pokerogue-server* rogueserver*
userdata/* userdata/*
secret.key secret.key

View File

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

View File

@ -4,7 +4,7 @@ import (
"crypto/rand" "crypto/rand"
"fmt" "fmt"
"github.com/pagefaultgames/pokerogue-server/db" "github.com/pagefaultgames/rogueserver/db"
) )
func ChangePW(uuid []byte, password string) error { func ChangePW(uuid []byte, password string) error {

View File

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

View File

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

View File

@ -4,7 +4,7 @@ import (
"database/sql" "database/sql"
"fmt" "fmt"
"github.com/pagefaultgames/pokerogue-server/db" "github.com/pagefaultgames/rogueserver/db"
) )
// /account/logout - log out of account // /account/logout - log out of account

View File

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

View File

@ -6,9 +6,9 @@ import (
"log" "log"
"net/http" "net/http"
"github.com/pagefaultgames/pokerogue-server/api/account" "github.com/pagefaultgames/rogueserver/api/account"
"github.com/pagefaultgames/pokerogue-server/api/daily" "github.com/pagefaultgames/rogueserver/api/daily"
"github.com/pagefaultgames/pokerogue-server/db" "github.com/pagefaultgames/rogueserver/db"
) )
func Init(mux *http.ServeMux) { func Init(mux *http.ServeMux) {

View File

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

View File

@ -3,8 +3,8 @@ package daily
import ( import (
"log" "log"
"github.com/pagefaultgames/pokerogue-server/db" "github.com/pagefaultgames/rogueserver/db"
"github.com/pagefaultgames/pokerogue-server/defs" "github.com/pagefaultgames/rogueserver/defs"
) )
// /daily/rankings - fetch daily rankings // /daily/rankings - fetch daily rankings

View File

@ -3,7 +3,7 @@ package daily
import ( import (
"log" "log"
"github.com/pagefaultgames/pokerogue-server/db" "github.com/pagefaultgames/rogueserver/db"
) )
// /daily/rankingpagecount - fetch daily ranking page count // /daily/rankingpagecount - fetch daily ranking page count

View File

@ -6,11 +6,11 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"github.com/pagefaultgames/pokerogue-server/api/account" "github.com/pagefaultgames/rogueserver/api/account"
"github.com/pagefaultgames/pokerogue-server/api/daily" "github.com/pagefaultgames/rogueserver/api/daily"
"github.com/pagefaultgames/pokerogue-server/api/savedata" "github.com/pagefaultgames/rogueserver/api/savedata"
"github.com/pagefaultgames/pokerogue-server/db" "github.com/pagefaultgames/rogueserver/db"
"github.com/pagefaultgames/pokerogue-server/defs" "github.com/pagefaultgames/rogueserver/defs"
) )
/* /*

View File

@ -7,8 +7,8 @@ import (
"os" "os"
"strconv" "strconv"
"github.com/pagefaultgames/pokerogue-server/db" "github.com/pagefaultgames/rogueserver/db"
"github.com/pagefaultgames/pokerogue-server/defs" "github.com/pagefaultgames/rogueserver/defs"
) )
type ClearResponse struct { type ClearResponse struct {

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"github.com/klauspost/compress/zstd" "github.com/klauspost/compress/zstd"
"github.com/pagefaultgames/pokerogue-server/defs" "github.com/pagefaultgames/rogueserver/defs"
) )
func readSystemSaveData(uuid []byte) (defs.SystemSaveData, error) { func readSystemSaveData(uuid []byte) (defs.SystemSaveData, error) {

View File

@ -6,8 +6,8 @@ import (
"os" "os"
"strconv" "strconv"
"github.com/pagefaultgames/pokerogue-server/db" "github.com/pagefaultgames/rogueserver/db"
"github.com/pagefaultgames/pokerogue-server/defs" "github.com/pagefaultgames/rogueserver/defs"
) )
// /savedata/delete - delete save data // /savedata/delete - delete save data

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"strconv" "strconv"
"github.com/pagefaultgames/pokerogue-server/db" "github.com/pagefaultgames/rogueserver/db"
"github.com/pagefaultgames/pokerogue-server/defs" "github.com/pagefaultgames/rogueserver/defs"
) )
// /savedata/get - get save data // /savedata/get - get save data

View File

@ -9,8 +9,8 @@ import (
"strconv" "strconv"
"github.com/klauspost/compress/zstd" "github.com/klauspost/compress/zstd"
"github.com/pagefaultgames/pokerogue-server/db" "github.com/pagefaultgames/rogueserver/db"
"github.com/pagefaultgames/pokerogue-server/defs" "github.com/pagefaultgames/rogueserver/defs"
) )
var zstdEncoder, _ = zstd.NewWriter(nil) var zstdEncoder, _ = zstd.NewWriter(nil)

View File

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

View File

@ -6,7 +6,7 @@ import (
"slices" "slices"
_ "github.com/go-sql-driver/mysql" _ "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 { func AddAccountRecord(uuid []byte, username string, key, salt []byte) error {

View File

@ -3,7 +3,7 @@ package db
import ( import (
"math" "math"
"github.com/pagefaultgames/pokerogue-server/defs" "github.com/pagefaultgames/rogueserver/defs"
) )
func TryAddDailyRun(seed string) error { 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 go 1.22

View File

@ -8,8 +8,8 @@ import (
"net/http" "net/http"
"os" "os"
"github.com/pagefaultgames/pokerogue-server/api" "github.com/pagefaultgames/rogueserver/api"
"github.com/pagefaultgames/pokerogue-server/db" "github.com/pagefaultgames/rogueserver/db"
) )
func main() { func main() {