Skip to content

Commit

Permalink
Added support for more WKT (grpc-ecosystem#816)
Browse files Browse the repository at this point in the history
* Added support for more WKT

* Lint fix: added comments on exported functions

* Lint fix: added comments on exported functions

* Added end to end example to show support of StringValue in url option template

* updated more example protos; removed server and proxy for now

* Updated convert.go to fix float and other wkt

* brazel build fix
  • Loading branch information
mayankcpdixit authored and johanbrandhorst committed Nov 19, 2018
1 parent dd4ffb0 commit 063f96e
Show file tree
Hide file tree
Showing 7 changed files with 1,117 additions and 0 deletions.
39 changes: 39 additions & 0 deletions examples/pbwrappers/helloworld/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")

proto_library(
name = "helloworld_proto",
srcs = ["helloworld.proto"],
visibility = ["//visibility:public"],
deps = [
"@com_google_protobuf//:wrappers_proto",
"@go_googleapis//google/api:annotations_proto",
],
)

go_proto_library(
name = "helloworld_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/pbwrappers/helloworld",
proto = ":helloworld_proto",
visibility = ["//visibility:public"],
deps = ["@go_googleapis//google/api:annotations_go_proto"],
)

go_library(
name = "go_default_library",
srcs = ["helloworld.pb.gw.go"],
embed = [":helloworld_go_proto"],
importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/pbwrappers/helloworld",
visibility = ["//visibility:public"],
deps = [
"//runtime:go_default_library",
"//utilities:go_default_library",
"@com_github_golang_protobuf//proto:go_default_library",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//codes:go_default_library",
"@org_golang_google_grpc//grpclog:go_default_library",
"@org_golang_google_grpc//status:go_default_library",
"@org_golang_x_net//context:go_default_library",
],
)
288 changes: 288 additions & 0 deletions examples/pbwrappers/helloworld/helloworld.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 063f96e

Please sign in to comment.