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 = "eventchannel",
|
|
|
|
srcs = [
|
|
|
|
"event.go",
|
2019-07-30 00:11:27 +00:00
|
|
|
"rate.go",
|
2018-04-27 17:37:02 +00:00
|
|
|
],
|
|
|
|
visibility = ["//:sandbox"],
|
|
|
|
deps = [
|
|
|
|
":eventchannel_go_proto",
|
|
|
|
"//pkg/log",
|
2020-01-10 06:00:42 +00:00
|
|
|
"//pkg/sync",
|
2018-04-27 17:37:02 +00:00
|
|
|
"//pkg/unet",
|
|
|
|
"@com_github_golang_protobuf//proto:go_default_library",
|
2018-10-03 00:27:09 +00:00
|
|
|
"@com_github_golang_protobuf//ptypes:go_default_library_gen",
|
2019-07-30 00:11:27 +00:00
|
|
|
"@org_golang_x_time//rate:go_default_library",
|
2018-04-27 17:37:02 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
proto_library(
|
2020-01-27 18:04:07 +00:00
|
|
|
name = "eventchannel",
|
2018-04-27 17:37:02 +00:00
|
|
|
srcs = ["event.proto"],
|
2019-11-21 19:29:49 +00:00
|
|
|
visibility = ["//:sandbox"],
|
2018-04-27 17:37:02 +00:00
|
|
|
)
|
|
|
|
|
2019-07-30 00:11:27 +00:00
|
|
|
go_test(
|
|
|
|
name = "eventchannel_test",
|
|
|
|
srcs = ["event_test.go"],
|
2020-01-27 18:04:07 +00:00
|
|
|
library = ":eventchannel",
|
2019-07-30 00:11:27 +00:00
|
|
|
deps = [
|
2020-01-10 06:00:42 +00:00
|
|
|
"//pkg/sync",
|
2019-07-30 00:11:27 +00:00
|
|
|
"@com_github_golang_protobuf//proto:go_default_library",
|
|
|
|
],
|
|
|
|
)
|