load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "websocket", srcs = [ "subscriber.go", "websocket.go", ], importpath = "edge-infra.dev/pkg/sds/interlock/websocket", visibility = ["//visibility:public"], deps = [ "//pkg/lib/fog", "//pkg/sds/interlock/internal/errors", "//pkg/sds/interlock/internal/observability", "@com_github_gin_gonic_gin//:gin", "@com_github_gorilla_websocket//:websocket", "@org_golang_x_sys//unix", ], ) go_test( name = "websocket_test", srcs = [ "subscriber_test.go", "websocket_test.go", ], embed = [":websocket"], deps = [ "@com_github_gin_gonic_gin//:gin", "@com_github_gorilla_websocket//:websocket", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", ], )