...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "server",
5 srcs = [
6 "client.go",
7 "server.go",
8 ],
9 importpath = "edge-infra.dev/pkg/f8n/ipranger/server",
10 visibility = ["//visibility:public"],
11 deps = [
12 "//pkg/f8n/ipranger",
13 "//pkg/lib/logging",
14 "@com_github_gin_gonic_gin//:gin",
15 "@com_github_google_uuid//:uuid",
16 "@com_github_prometheus_client_golang//prometheus/promhttp",
17 ],
18)
19
20go_test(
21 name = "server_test",
22 srcs = [
23 "client_test.go",
24 "server_test.go",
25 ],
26 embed = [":server"],
27 visibility = ["//visibility:public"],
28 deps = ["@tools_gotest_v3//assert"],
29)
View as plain text