mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
ff99a2ed40
* register events handler in v1 * begin `status.Error` messages with uppercase * something works * handle errors * topic comments * handle the rest of event types * gzl * make code more testable + test * better error handling * tests * gzl * fix deps Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
42 lines
1.3 KiB
Python
42 lines
1.3 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
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/eventsv1: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/eventsv1: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",
|
|
],
|
|
)
|