github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/metric/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test", "proto_library")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "metric",
     7      srcs = ["metric.go"],
     8      visibility = ["//:sandbox"],
     9      deps = [
    10          ":metric_go_proto",
    11          "//pkg/eventchannel",
    12          "//pkg/log",
    13          "//pkg/sync",
    14      ],
    15  )
    16  
    17  proto_library(
    18      name = "metric",
    19      srcs = ["metric.proto"],
    20      visibility = ["//:sandbox"],
    21  )
    22  
    23  go_test(
    24      name = "metric_test",
    25      srcs = ["metric_test.go"],
    26      library = ":metric",
    27      deps = [
    28          ":metric_go_proto",
    29          "//pkg/eventchannel",
    30          "@org_golang_google_protobuf//proto:go_default_library",
    31      ],
    32  )