renamed converge package to matchmaker.

This commit is contained in:
Erik Brakkee 2024-08-12 21:53:26 +02:00
parent 4f06fd71e0
commit a06d8b0ca6
5 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@ package main
import (
"context"
"fmt"
"git.wamblee.org/converge/pkg/server/converge"
"git.wamblee.org/converge/pkg/server/matchmaker"
"git.wamblee.org/converge/pkg/support/websocketutil"
"log"
"net"
@ -96,8 +96,8 @@ func main() {
}
notifications := NewStateNotifier()
admin := converge.NewMatchMaker(notifications)
websessions := converge.NewWebSessions(notifications.webNotificationChannel)
admin := matchmaker.NewMatchMaker(notifications)
websessions := matchmaker.NewWebSessions(notifications.webNotificationChannel)
// For agents connecting
registrationService := websocketutil.WebSocketService{
@ -138,7 +138,7 @@ func main() {
ctx, cancel := context.WithCancel(context.Background())
websession := websessions.NewSession(conn, ctx)
defer websessions.SessionClosed(websession)
location, err := converge.GetUserLocation(r)
location, err := matchmaker.GetUserLocation(r)
if err != nil {
panic(err)
}

View File

@ -2,7 +2,7 @@ package main
import (
"git.wamblee.org/converge/pkg/models"
"git.wamblee.org/converge/pkg/server/converge"
"git.wamblee.org/converge/pkg/server/matchmaker"
"net/http"
"regexp"
"strings"
@ -32,7 +32,7 @@ func getConvergeAccess(r *http.Request) models.ConvergeAccess {
}
}
location, err := converge.GetUserLocation(r)
location, err := matchmaker.GetUserLocation(r)
if err != nil {
panic(err)
}

View File

@ -1,4 +1,4 @@
package converge
package matchmaker
import (
"fmt"

View File

@ -1,4 +1,4 @@
package converge
package matchmaker
import "git.wamblee.org/converge/pkg/models"

View File

@ -1,4 +1,4 @@
package converge
package matchmaker
import (
"context"