load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "topic", srcs = ["topic.go"], importpath = "edge-infra.dev/pkg/sds/interlock/topic", visibility = ["//visibility:public"], deps = [ "//pkg/lib/fog", "//pkg/sds/interlock/internal/config", "//pkg/sds/interlock/internal/errors", "//pkg/sds/interlock/websocket", "@com_github_gin_gonic_gin//:gin", "@com_github_gin_gonic_gin//binding", "@com_github_go_playground_validator_v10//:validator", ], ) go_test( name = "topic_test", srcs = [ "topic_int_test.go", "topic_test.go", ], embed = [":topic"], deps = [ "//pkg/lib/fog", "//pkg/sds/interlock/websocket", "@com_github_gin_gonic_gin//:gin", "@com_github_gin_gonic_gin//binding", "@com_github_go_playground_validator_v10//:validator", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", ], )