blob: 222a379ef63649f4bf0450e1357111b474a7f222 [file] [log] [blame]
Sergiusz Bazanski6eaaaf92019-08-02 01:25:31 +02001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
Serge Bazanski97b5cd72023-07-28 17:14:50 +00004 name = "provider",
Sergiusz Bazanski6eaaaf92019-08-02 01:25:31 +02005 srcs = [
6 "arin.go",
7 "iana.go",
8 "provider.go",
9 "ripe.go",
10 "rpsl.go",
11 ],
12 importpath = "code.hackerspace.pl/hscloud/bgpwtf/cccampix/irr/provider",
13 visibility = ["//visibility:public"],
14 deps = [
Serge Bazanski97b5cd72023-07-28 17:14:50 +000015 "//bgpwtf/cccampix/irr/whois",
16 "//bgpwtf/cccampix/proto",
17 "@com_github_golang_collections_go_datastructures//augmentedtree",
18 "@com_github_golang_glog//:glog",
19 "@org_golang_google_grpc//codes",
20 "@org_golang_google_grpc//status",
Sergiusz Bazanski6eaaaf92019-08-02 01:25:31 +020021 ],
22)
23
24go_test(
Serge Bazanski97b5cd72023-07-28 17:14:50 +000025 name = "provider_test",
Sergiusz Bazanski6eaaaf92019-08-02 01:25:31 +020026 srcs = ["rpsl_test.go"],
Serge Bazanski97b5cd72023-07-28 17:14:50 +000027 embed = [":provider"],
Sergiusz Bazanski6eaaaf92019-08-02 01:25:31 +020028 deps = [
Serge Bazanski97b5cd72023-07-28 17:14:50 +000029 "//bgpwtf/cccampix/proto",
30 "@com_github_go_test_deep//:deep",
Sergiusz Bazanski6eaaaf92019-08-02 01:25:31 +020031 ],
32)