prysm-pulse/beacon-chain/rpc/apimiddleware/BUILD.bazel
terence tsao 1edf1f4c87
Restructure RPC packages to be future compatible (#9136)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-02 15:54:52 +00:00

41 lines
1.3 KiB
Python

load("@prysm//tools/go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = [
"custom_handlers.go",
"custom_hooks.go",
"endpoint_factory.go",
"structs.go",
],
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/rpc/apimiddleware",
visibility = ["//beacon-chain:__subpackages__"],
deps = [
"//beacon-chain/rpc/eth/v1/events:go_default_library",
"//shared/bytesutil:go_default_library",
"//shared/gateway:go_default_library",
"//shared/grpcutils:go_default_library",
"@com_github_ethereum_go_ethereum//common/hexutil:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@com_github_r3labs_sse//:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = [
"custom_handlers_test.go",
"custom_hooks_test.go",
],
embed = [":go_default_library"],
deps = [
"//beacon-chain/rpc/eth/v1/events:go_default_library",
"//shared/bytesutil:go_default_library",
"//shared/gateway:go_default_library",
"//shared/grpcutils:go_default_library",
"//shared/testutil/assert:go_default_library",
"//shared/testutil/require:go_default_library",
"@com_github_r3labs_sse//:go_default_library",
],
)