github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/eventchannel/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test", "proto_library") 2 3 package(licenses = ["notice"]) 4 5 go_library( 6 name = "eventchannel", 7 srcs = [ 8 "event.go", 9 "event_any.go", 10 "rate.go", 11 ], 12 visibility = ["//:sandbox"], 13 deps = [ 14 ":eventchannel_go_proto", 15 "//pkg/errors/linuxerr", 16 "//pkg/log", 17 "//pkg/sync", 18 "//pkg/unet", 19 "@org_golang_google_protobuf//encoding/prototext:go_default_library", 20 "@org_golang_google_protobuf//proto:go_default_library", 21 "@org_golang_google_protobuf//types/known/anypb:go_default_library", 22 "@org_golang_x_time//rate:go_default_library", 23 ], 24 ) 25 26 proto_library( 27 name = "eventchannel", 28 srcs = ["event.proto"], 29 visibility = ["//:sandbox"], 30 ) 31 32 go_test( 33 name = "eventchannel_test", 34 srcs = ["event_test.go"], 35 library = ":eventchannel", 36 deps = [ 37 "//pkg/sync", 38 "@org_golang_google_protobuf//proto:go_default_library", 39 ], 40 )