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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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