2020-01-27 18:04:07 +00:00
|
|
|
load("//tools:defs.bzl", "go_library", "go_test", "proto_library")
|
2018-04-27 17:37:02 +00:00
|
|
|
|
2019-01-31 19:11:44 +00:00
|
|
|
package(licenses = ["notice"])
|
2018-10-23 07:19:11 +00:00
|
|
|
|
2018-04-27 17:37:02 +00:00
|
|
|
go_library(
|
|
|
|
name = "metric",
|
|
|
|
srcs = ["metric.go"],
|
|
|
|
visibility = ["//:sandbox"],
|
|
|
|
deps = [
|
|
|
|
":metric_go_proto",
|
|
|
|
"//pkg/eventchannel",
|
|
|
|
"//pkg/log",
|
2020-01-10 06:00:42 +00:00
|
|
|
"//pkg/sync",
|
2018-04-27 17:37:02 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
proto_library(
|
2020-01-27 18:04:07 +00:00
|
|
|
name = "metric",
|
2018-04-27 17:37:02 +00:00
|
|
|
srcs = ["metric.proto"],
|
|
|
|
visibility = ["//:sandbox"],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "metric_test",
|
|
|
|
srcs = ["metric_test.go"],
|
2020-01-27 18:04:07 +00:00
|
|
|
library = ":metric",
|
2018-04-27 17:37:02 +00:00
|
|
|
deps = [
|
|
|
|
":metric_go_proto",
|
|
|
|
"//pkg/eventchannel",
|
|
|
|
"@com_github_golang_protobuf//proto:go_default_library",
|
|
|
|
],
|
|
|
|
)
|