prysm-pulse/shared/logutil/BUILD.bazel
Preston Van Loon e927a3d170
Streaming logs: add backfill of messages for new connections" (#7265)
* add backfill of logs

* Add test and gofmt
2020-09-17 19:34:03 -05:00

28 lines
829 B
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 = [
"logutil.go",
"stream.go",
],
importpath = "github.com/prysmaticlabs/prysm/shared/logutil",
visibility = ["//visibility:public"],
deps = [
"//shared/event:go_default_library",
"//shared/params:go_default_library",
"//shared/rand:go_default_library",
"@com_github_gorilla_websocket//:go_default_library",
"@com_github_hashicorp_golang_lru//:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = ["stream_test.go"],
embed = [":go_default_library"],
deps = ["//shared/testutil/require:go_default_library"],
)