2023-03-09 09:23:42 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
2023-06-12 07:45:34 -04:00
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
2023-03-09 09:23:42 -05:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "grpclog",
|
2023-06-12 07:45:34 -04:00
|
|
|
srcs = ["grpclog.go"],
|
2023-03-09 09:23:42 -05:00
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/grpc/grpclog",
|
|
|
|
visibility = ["//:__subpackages__"],
|
2023-06-12 07:45:34 -04:00
|
|
|
deps = [
|
|
|
|
"@org_golang_google_grpc//connectivity",
|
|
|
|
"@org_golang_google_grpc//peer",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "grpclog_test",
|
|
|
|
srcs = ["grpclog_test.go"],
|
|
|
|
embed = [":grpclog"],
|
|
|
|
deps = [
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@org_golang_google_grpc//connectivity",
|
|
|
|
],
|
2023-03-09 09:23:42 -05:00
|
|
|
)
|