...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "websocket",
5 srcs = [
6 "subscriber.go",
7 "websocket.go",
8 ],
9 importpath = "edge-infra.dev/pkg/sds/interlock/websocket",
10 visibility = ["//visibility:public"],
11 deps = [
12 "//pkg/lib/fog",
13 "//pkg/sds/interlock/internal/errors",
14 "//pkg/sds/interlock/internal/observability",
15 "@com_github_gin_gonic_gin//:gin",
16 "@com_github_gorilla_websocket//:websocket",
17 "@org_golang_x_sys//unix",
18 ],
19)
20
21go_test(
22 name = "websocket_test",
23 srcs = [
24 "subscriber_test.go",
25 "websocket_test.go",
26 ],
27 embed = [":websocket"],
28 deps = [
29 "@com_github_gin_gonic_gin//:gin",
30 "@com_github_gorilla_websocket//:websocket",
31 "@com_github_stretchr_testify//assert",
32 "@com_github_stretchr_testify//require",
33 ],
34)
View as plain text