summaryrefslogtreecommitdiffhomepage
path: root/pkg/eventchannel/BUILD
blob: 56399232a03a779d469b7d047deef4c4380eb732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
load("//tools:defs.bzl", "go_library", "go_test", "proto_library")

package(licenses = ["notice"])

go_library(
    name = "eventchannel",
    srcs = [
        "event.go",
        "event_any.go",
        "processor.go",
        "rate.go",
    ],
    visibility = ["//:sandbox"],
    deps = [
        ":eventchannel_go_proto",
        "//pkg/errors/linuxerr",
        "//pkg/log",
        "//pkg/sync",
        "//pkg/unet",
        "@org_golang_google_protobuf//encoding/prototext:go_default_library",
        "@org_golang_google_protobuf//proto:go_default_library",
        "@org_golang_google_protobuf//types/known/anypb:go_default_library",
        "@org_golang_x_time//rate:go_default_library",
    ],
)

proto_library(
    name = "eventchannel",
    srcs = ["event.proto"],
    visibility = ["//:sandbox"],
)

go_test(
    name = "eventchannel_test",
    srcs = ["event_test.go"],
    library = ":eventchannel",
    deps = [
        "//pkg/sync",
        "@org_golang_google_protobuf//proto:go_default_library",
    ],
)