2023-04-17 12:22:34 +08:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
2020-10-13 21:10:57 -03:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"journald.go",
|
|
|
|
"journald_linux.go",
|
2023-04-17 12:22:34 +08:00
|
|
|
"journalhook.go",
|
2020-10-13 21:10:57 -03:00
|
|
|
],
|
2023-03-17 11:52:56 -07:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/monitoring/journald",
|
2020-10-13 21:10:57 -03:00
|
|
|
visibility = ["//visibility:public"],
|
2023-04-17 12:22:34 +08:00
|
|
|
deps = [
|
|
|
|
"@com_github_coreos_go_systemd//journal:go_default_library",
|
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = ["journalhook_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
2020-10-13 21:10:57 -03:00
|
|
|
)
|