Skip to content

Commit

Permalink
chore: change nhooyr.io/websocket to github.com/coder/websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienaury committed Aug 27, 2024
1 parent 9b8be28 commit 98b3cdd
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 17 deletions.
5 changes: 2 additions & 3 deletions cmd/ws-mock/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"strings"
"time"

"nhooyr.io/websocket"
"nhooyr.io/websocket/wsjson"
"github.com/coder/websocket"
"github.com/coder/websocket/wsjson"
)

func main() {
Expand Down Expand Up @@ -290,7 +290,6 @@ func relations(ctx context.Context, c *websocket.Conn, v map[string]interface{})
"error": nil,
"next": false,
"payload": []map[string]interface{}{

{
"name": "FK_EMP_PHOTO",
"parent": map[string]interface{}{
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ require (
github.com/awalterschulze/gographviz v2.0.3+incompatible
github.com/cgi-fr/jsonline v0.5.0
github.com/cgi-fr/rimo v0.4.0
github.com/coder/websocket v1.8.12
github.com/docker/docker-credential-helpers v0.8.2
github.com/go-sql-driver/mysql v1.8.1
github.com/gorilla/mux v1.8.1
Expand All @@ -27,7 +28,6 @@ require (
golang.org/x/exp v0.0.0-20231006140011-7918f672742d
golang.org/x/term v0.23.0
gopkg.in/yaml.v3 v3.0.1
nhooyr.io/websocket v1.8.17
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGX
github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/coder/websocket v1.8.12 h1:5bUXkEPPIbewrnkU8LTCLVaxi4N4J8ahufH2vlo4NAo=
github.com/coder/websocket v1.8.12/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs=
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
Expand Down Expand Up @@ -786,8 +788,6 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
nhooyr.io/websocket v1.8.17 h1:KEVeLJkUywCKVsnLIDlD/5gtayKp8VoCkksHCGGfT9Y=
nhooyr.io/websocket v1.8.17/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+c=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
4 changes: 2 additions & 2 deletions internal/infra/dataconnector/pinger_ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"time"

"github.com/cgi-fr/lino/pkg/dataconnector"
"nhooyr.io/websocket"
"nhooyr.io/websocket/wsjson"
"github.com/coder/websocket"
"github.com/coder/websocket/wsjson"
)

type action string
Expand Down
4 changes: 2 additions & 2 deletions internal/infra/pull/datasource_ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import (
"time"

"github.com/cgi-fr/lino/pkg/pull"
"github.com/coder/websocket"
"github.com/coder/websocket/wsjson"
"github.com/rs/zerolog/log"
"nhooyr.io/websocket"
"nhooyr.io/websocket/wsjson"
)

type action string
Expand Down
6 changes: 3 additions & 3 deletions internal/infra/push/datadestination_ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ import (
"time"

"github.com/cgi-fr/lino/pkg/push"
"github.com/coder/websocket"
"github.com/coder/websocket/wsjson"
"github.com/rs/zerolog/log"
"nhooyr.io/websocket"
"nhooyr.io/websocket/wsjson"
)

type Action string

// "pull_open", "push_open", "push_data", "push_commit", "push_close"
// "pull_open", "push_open", "push_data", "push_commit", "push_close"
const (
PushOpen Action = "push_open"
PushData Action = "push_data"
Expand Down
4 changes: 2 additions & 2 deletions internal/infra/relation/extractor_ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"time"

"github.com/cgi-fr/lino/pkg/relation"
"nhooyr.io/websocket"
"nhooyr.io/websocket/wsjson"
"github.com/coder/websocket"
"github.com/coder/websocket/wsjson"
)

type action string
Expand Down
4 changes: 2 additions & 2 deletions internal/infra/table/ws_extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"time"

"github.com/cgi-fr/lino/pkg/table"
"nhooyr.io/websocket"
"nhooyr.io/websocket/wsjson"
"github.com/coder/websocket"
"github.com/coder/websocket/wsjson"
)

type action string
Expand Down

0 comments on commit 98b3cdd

Please sign in to comment.