Rename to rogueserver

pull/4/head
maru 7 months ago
parent b52abbf7fe
commit e8240c9c38
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

2
.gitignore vendored

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -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() {
Loading…
Cancel
Save