2022-07-07 20:11:50 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("@rules_proto//proto:defs.bzl", "proto_library")
|
|
|
|
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
|
|
|
|
|
|
|
|
proto_library(
|
|
|
|
name = "commonpb_proto",
|
|
|
|
srcs = [
|
|
|
|
"common.proto",
|
|
|
|
"healthcheck.proto",
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
2024-02-24 00:34:55 +00:00
|
|
|
deps = ["@googleapis//google/api:annotations_proto"],
|
2022-07-07 20:11:50 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_proto_library(
|
|
|
|
name = "commonpb_go_proto",
|
|
|
|
compilers = [
|
|
|
|
"//:go_apiv2",
|
|
|
|
"//:go_grpc",
|
|
|
|
"//:go_validate",
|
2024-02-24 00:34:55 +00:00
|
|
|
"//:go_gen_grpc_gateway",
|
2022-07-07 20:11:50 +00:00
|
|
|
],
|
|
|
|
importpath = "peridot.resf.org/common",
|
|
|
|
proto = ":commonpb_proto",
|
|
|
|
visibility = ["//visibility:public"],
|
2024-02-24 00:34:55 +00:00
|
|
|
deps = ["@org_golang_google_genproto_googleapis_api//annotations"],
|
2022-07-07 20:11:50 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "common",
|
|
|
|
embed = [":commonpb_go_proto"],
|
|
|
|
importpath = "peridot.resf.org/common",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|