| Jan Schär | 75ea9f4 | 2024-07-29 17:01:41 +0200 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") |
| 2 | |
| 3 | go_library( |
| 4 | name = "proxy", |
| 5 | srcs = [ |
| 6 | "connect.go", |
| 7 | "health.go", |
| 8 | "metrics.go", |
| 9 | "persistent.go", |
| 10 | "proxy.go", |
| 11 | "type.go", |
| 12 | ], |
| 13 | importpath = "source.monogon.dev/osbase/net/dns/forward/proxy", |
| 14 | visibility = ["//osbase/net/dns/forward:__subpackages__"], |
| 15 | deps = [ |
| 16 | "//osbase/net/dns", |
| 17 | "//osbase/net/dns/forward/up", |
| 18 | "@com_github_miekg_dns//:dns", |
| 19 | "@com_github_prometheus_client_golang//prometheus", |
| 20 | ], |
| 21 | ) |
| 22 | |
| 23 | go_test( |
| 24 | name = "proxy_test", |
| 25 | srcs = [ |
| 26 | "health_test.go", |
| 27 | "persistent_test.go", |
| 28 | "proxy_test.go", |
| 29 | ], |
| 30 | embed = [":proxy"], |
| 31 | deps = [ |
| 32 | "//osbase/net/dns/test", |
| 33 | "@com_github_miekg_dns//:dns", |
| 34 | ], |
| 35 | ) |