Skip to content

Commit f609df7

Browse files
gaultierory-bot
authored andcommitted
chore: remove unused x/watcherx/websocket
GitOrigin-RevId: dcc24bbcc13d26bc7ad3bfae67edfd823a9ad06d
1 parent 953c9cc commit f609df7

File tree

8 files changed

+7
-306
lines changed

8 files changed

+7
-306
lines changed

.schema/config.schema.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
"oneOf": [
352352
{
353353
"title": "Legacy namespace Repo URI",
354-
"description": "A URI that points to a directory of namespace files, a single file with all namespaces, or a websocket connection that provides former via `github.com/ory/x/watcherx.WatchAndServeWS`",
354+
"description": "A URI that points to a directory of namespace files, or a single file with all namespaces",
355355
"type": "string",
356356
"format": "uri"
357357
},
@@ -369,12 +369,11 @@
369369
"location": {
370370
"type": "string",
371371
"title": "Ory Permission Language config file URI",
372-
"description": "A URI that points to a directory of namespace files, a single file with all namespaces, or a websocket connection that provides former via `github.com/ory/x/watcherx.WatchAndServeWS`",
372+
"description": "A URI that points to a directory of namespace files, or a single file with all namespaces",
373373
"format": "uri",
374374
"examples": [
375375
"file://./keto_namespaces.ts",
376-
"file:///etc/configs/keto_namespaces.ts",
377-
"ws://my.websocket.server/keto_namespaces.ts"
376+
"file:///etc/configs/keto_namespaces.ts"
378377
]
379378
},
380379
"experimental_strict_mode": {

cmd/namespace/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func validateConfigFile(cmd *cobra.Command, fn string) error {
149149
}
150150

151151
if ns, ok := val["namespaces"]; ok {
152-
// ns can either be a ws url or a list of namespace objects)
152+
// ns can either be a file url or a list of namespace objects
153153
switch t := ns.(type) {
154154
case string:
155155
logger := logrusx.New("cmd", "0")

embedx/config.schema.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
"oneOf": [
352352
{
353353
"title": "Legacy namespace Repo URI",
354-
"description": "A URI that points to a directory of namespace files, a single file with all namespaces, or a websocket connection that provides former via `github.com/ory/x/watcherx.WatchAndServeWS`",
354+
"description": "A URI that points to a directory of namespace files, or a single file with all namespaces",
355355
"type": "string",
356356
"format": "uri"
357357
},
@@ -369,12 +369,11 @@
369369
"location": {
370370
"type": "string",
371371
"title": "Ory Permission Language config file URI",
372-
"description": "A URI that points to a directory of namespace files, a single file with all namespaces, or a websocket connection that provides former via `github.com/ory/x/watcherx.WatchAndServeWS`",
372+
"description": "A URI that points to a directory of namespace files, or a single file with all namespaces",
373373
"format": "uri",
374374
"examples": [
375375
"file://./keto_namespaces.ts",
376-
"file:///etc/configs/keto_namespaces.ts",
377-
"ws://my.websocket.server/keto_namespaces.ts"
376+
"file:///etc/configs/keto_namespaces.ts"
378377
]
379378
},
380379
"experimental_strict_mode": {

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ require (
160160
github.com/google/uuid v1.6.0 // indirect
161161
github.com/gorilla/css v1.0.1 // indirect
162162
github.com/gorilla/handlers v1.5.2 // indirect
163-
github.com/gorilla/websocket v1.5.3 // indirect
164163
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
165164
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 // indirect
166165
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@ github.com/gorilla/securecookie v1.1.1 h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyC
279279
github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4=
280280
github.com/gorilla/sessions v1.2.1 h1:DHd3rPN5lE3Ts3D8rKkQ8x/0kqfeNmBAaiSi+o7FsgI=
281281
github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM=
282-
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
283-
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
284282
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.1 h1:KcFzXwzM/kGhIRHvc8jdixfIJjVzuUJdnv+5xsPutog=
285283
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.1/go.mod h1:qOchhhIlmRcqk/O9uCo/puJlyo07YINaIqdZfZG3Jkc=
286284
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho=

oryx/watcherx/definitions.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ func Watch(ctx context.Context, u *url.URL, c EventChannel) (Watcher, error) {
6262
// see urlx.Parse for why the empty string is also file
6363
case "file", "":
6464
return WatchFile(ctx, u.Path, c)
65-
case "ws":
66-
return WatchWebsocket(ctx, u, c)
6765
}
6866
return nil, &errSchemeUnknown{u.Scheme}
6967
}

oryx/watcherx/websocket_client.go

Lines changed: 0 additions & 116 deletions
This file was deleted.

oryx/watcherx/websocket_server.go

Lines changed: 0 additions & 176 deletions
This file was deleted.

0 commit comments

Comments
 (0)