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