gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/eventchannel/BUILD (about)

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