renamed converge package to matchmaker.
This commit is contained in:
parent
4f06fd71e0
commit
a06d8b0ca6
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
package converge
|
||||
package matchmaker
|
||||
|
||||
import (
|
||||
"fmt"
|
@ -1,4 +1,4 @@
|
||||
package converge
|
||||
package matchmaker
|
||||
|
||||
import "git.wamblee.org/converge/pkg/models"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package converge
|
||||
package matchmaker
|
||||
|
||||
import (
|
||||
"context"
|
Loading…
Reference in New Issue
Block a user