This commit is contained in:
41666 2024-11-13 21:12:33 -08:00
parent 17bb653939
commit 7332fd6fad
24 changed files with 45 additions and 45 deletions

View file

@ -7,8 +7,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/genudine/saerro-go/store" "git.sapphic.engineer/ps2.live/saerro-go/store"
"github.com/genudine/saerro-go/util" "git.sapphic.engineer/ps2.live/saerro-go/util"
) )
func main() { func main() {

View file

@ -5,7 +5,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/genudine/saerro-go/store/storemock" "git.sapphic.engineer/ps2.live/saerro-go/store/storemock"
) )
func TestRun(t *testing.T) { func TestRun(t *testing.T) {

View file

@ -8,10 +8,10 @@ import (
"strconv" "strconv"
"testing" "testing"
"github.com/genudine/saerro-go/cmd/ws/eventhandler" "git.sapphic.engineer/ps2.live/saerro-go/cmd/ws/eventhandler"
"github.com/genudine/saerro-go/translators" "git.sapphic.engineer/ps2.live/saerro-go/translators"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
"github.com/genudine/saerro-go/util" "git.sapphic.engineer/ps2.live/saerro-go/util"
) )
const PreloadedCharacterCount = 45 const PreloadedCharacterCount = 45

View file

@ -4,9 +4,9 @@ import (
"context" "context"
"database/sql" "database/sql"
"github.com/genudine/saerro-go/cmd/ws/ingest" "git.sapphic.engineer/ps2.live/saerro-go/cmd/ws/ingest"
"github.com/genudine/saerro-go/store" "git.sapphic.engineer/ps2.live/saerro-go/store"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
) )
type IEventHandler interface { type IEventHandler interface {

View file

@ -5,9 +5,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/genudine/saerro-go/cmd/ws/ingest" "git.sapphic.engineer/ps2.live/saerro-go/cmd/ws/ingest"
"github.com/genudine/saerro-go/store/storemock" "git.sapphic.engineer/ps2.live/saerro-go/store/storemock"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
) )
func getEventHandlerTestShim(t *testing.T) (EventHandler, context.Context, *storemock.MockPlayerStore, *storemock.MockVehicleStore) { func getEventHandlerTestShim(t *testing.T) (EventHandler, context.Context, *storemock.MockPlayerStore, *storemock.MockVehicleStore) {

View file

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/genudine/saerro-go/store" "git.sapphic.engineer/ps2.live/saerro-go/store"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
) )
type IIngest interface { type IIngest interface {

View file

@ -6,10 +6,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/genudine/saerro-go/cmd/ws/ingest" "git.sapphic.engineer/ps2.live/saerro-go/cmd/ws/ingest"
"github.com/genudine/saerro-go/store/storemock" "git.sapphic.engineer/ps2.live/saerro-go/store/storemock"
"github.com/genudine/saerro-go/translators" "git.sapphic.engineer/ps2.live/saerro-go/translators"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
) )
func mkIngest(t *testing.T) (context.Context, *ingest.Ingest, *storemock.MockPlayerStore, *storemock.MockVehicleStore) { func mkIngest(t *testing.T) (context.Context, *ingest.Ingest, *storemock.MockPlayerStore, *storemock.MockVehicleStore) {

View file

@ -8,9 +8,9 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/genudine/saerro-go/cmd/ws/eventhandler" "git.sapphic.engineer/ps2.live/saerro-go/cmd/ws/eventhandler"
"github.com/genudine/saerro-go/cmd/ws/wsmanager" "git.sapphic.engineer/ps2.live/saerro-go/cmd/ws/wsmanager"
"github.com/genudine/saerro-go/util" "git.sapphic.engineer/ps2.live/saerro-go/util"
) )
func main() { func main() {

View file

@ -3,7 +3,7 @@ package wsmanager
import ( import (
"fmt" "fmt"
"github.com/genudine/saerro-go/util" "git.sapphic.engineer/ps2.live/saerro-go/util"
) )
var experienceIDs = []int{ var experienceIDs = []int{

View file

@ -8,9 +8,9 @@ import (
"log" "log"
"time" "time"
"git.sapphic.engineer/ps2.live/saerro-go/cmd/ws/eventhandler"
"git.sapphic.engineer/ps2.live/saerro-go/types"
"github.com/coder/websocket" "github.com/coder/websocket"
"github.com/genudine/saerro-go/cmd/ws/eventhandler"
"github.com/genudine/saerro-go/types"
) )
type WebsocketManager struct { type WebsocketManager struct {

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/genudine/saerro-go module git.sapphic.engineer/ps2.live/saerro-go
go 1.22.3 go 1.22.3

View file

@ -9,9 +9,9 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/genudine/saerro-go/cmd/ws/eventhandler" "git.sapphic.engineer/ps2.live/saerro-go/cmd/ws/eventhandler"
"github.com/genudine/saerro-go/cmd/ws/wsmanager" "git.sapphic.engineer/ps2.live/saerro-go/cmd/ws/wsmanager"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
) )
func main() { func main() {

View file

@ -6,7 +6,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/genudine/saerro-go/util/testutil" "git.sapphic.engineer/ps2.live/saerro-go/util/testutil"
) )
func mkEnv(t *testing.T) (context.Context, *sql.DB) { func mkEnv(t *testing.T) (context.Context, *sql.DB) {

View file

@ -6,8 +6,8 @@ import (
"log" "log"
"time" "time"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
"github.com/genudine/saerro-go/util" "git.sapphic.engineer/ps2.live/saerro-go/util"
"github.com/avast/retry-go" "github.com/avast/retry-go"
) )

View file

@ -4,8 +4,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/genudine/saerro-go/store" "git.sapphic.engineer/ps2.live/saerro-go/store"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -4,7 +4,7 @@ import (
"context" "context"
"database/sql" "database/sql"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
) )

View file

@ -4,7 +4,7 @@ import (
"context" "context"
"database/sql" "database/sql"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
) )

View file

@ -6,8 +6,8 @@ import (
"log" "log"
"time" "time"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
"github.com/genudine/saerro-go/util" "git.sapphic.engineer/ps2.live/saerro-go/util"
"github.com/avast/retry-go" "github.com/avast/retry-go"
) )

View file

@ -4,8 +4,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/genudine/saerro-go/store" "git.sapphic.engineer/ps2.live/saerro-go/store"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -3,7 +3,7 @@ package translators_test
import ( import (
"testing" "testing"
"github.com/genudine/saerro-go/translators" "git.sapphic.engineer/ps2.live/saerro-go/translators"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -3,7 +3,7 @@ package translators_test
import ( import (
"testing" "testing"
"github.com/genudine/saerro-go/translators" "git.sapphic.engineer/ps2.live/saerro-go/translators"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -2,7 +2,7 @@
package types package types
import ( import (
"github.com/genudine/saerro-go/translators" "git.sapphic.engineer/ps2.live/saerro-go/translators"
) )
type PopEvent struct { type PopEvent struct {

View file

@ -3,7 +3,7 @@ package types_test
import ( import (
"testing" "testing"
"github.com/genudine/saerro-go/types" "git.sapphic.engineer/ps2.live/saerro-go/types"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -4,7 +4,7 @@ import (
"strconv" "strconv"
"testing" "testing"
"github.com/genudine/saerro-go/util" "git.sapphic.engineer/ps2.live/saerro-go/util"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )