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

View File

@ -2,7 +2,7 @@ package main
import ( import (
"git.wamblee.org/converge/pkg/models" "git.wamblee.org/converge/pkg/models"
"git.wamblee.org/converge/pkg/server/converge" "git.wamblee.org/converge/pkg/server/matchmaker"
"net/http" "net/http"
"regexp" "regexp"
"strings" "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 { if err != nil {
panic(err) panic(err)
} }

View File

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

View File

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

View File

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