move accesslog.proto to dedicated namespace (#274)
This avoids things like `filter.OrFilter` which makes no sense. Signed-off-by: Matt Klein <mklein@lyft.com>pull/275/head
parent
6928bdd17a
commit
334d87c260
13 changed files with 72 additions and 25 deletions
@ -0,0 +1,49 @@ |
|||||||
|
load("//bazel:api_build_system.bzl", "api_proto_library") |
||||||
|
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") |
||||||
|
|
||||||
|
# Go proto library dislikes proto libraries with no sources and only deps |
||||||
|
proto_library( |
||||||
|
name = "go_protos", |
||||||
|
srcs = [ |
||||||
|
"accesslog.proto", |
||||||
|
], |
||||||
|
visibility = ["//visibility:public"], |
||||||
|
deps = [ |
||||||
|
"//api:go_protos", |
||||||
|
"@com_google_protobuf//:any_proto", |
||||||
|
"@com_google_protobuf//:descriptor_proto", |
||||||
|
"@com_google_protobuf//:duration_proto", |
||||||
|
"@com_google_protobuf//:struct_proto", |
||||||
|
"@com_google_protobuf//:timestamp_proto", |
||||||
|
"@com_google_protobuf//:wrappers_proto", |
||||||
|
"@com_lyft_protoc_gen_validate//validate:validate_proto", |
||||||
|
"@googleapis//:http_api_protos_lib", |
||||||
|
], |
||||||
|
) |
||||||
|
|
||||||
|
go_proto_library( |
||||||
|
name = "go_default_library", |
||||||
|
importpath = "api/filter/accesslog", |
||||||
|
proto = ":go_protos", |
||||||
|
visibility = ["//visibility:public"], |
||||||
|
deps = [ |
||||||
|
"//api:go_default_library", |
||||||
|
"@com_github_golang_protobuf//ptypes/any:go_default_library", |
||||||
|
"@com_github_golang_protobuf//ptypes/duration:go_default_library", |
||||||
|
"@com_github_golang_protobuf//ptypes/struct:go_default_library", |
||||||
|
"@com_github_golang_protobuf//ptypes/timestamp:go_default_library", |
||||||
|
"@com_github_golang_protobuf//ptypes/wrappers:go_default_library", |
||||||
|
"@org_golang_google_genproto//googleapis/api/annotations:go_default_library", |
||||||
|
"@com_lyft_protoc_gen_validate//validate:go_default_library", |
||||||
|
], |
||||||
|
) |
||||||
|
|
||||||
|
api_proto_library( |
||||||
|
name = "accesslog", |
||||||
|
srcs = ["accesslog.proto"], |
||||||
|
has_services = 1, |
||||||
|
deps = [ |
||||||
|
"//api:address", |
||||||
|
"//api:base" |
||||||
|
], |
||||||
|
) |
Loading…
Reference in new issue