Преглед изворни кода

Expose the gRPC code generation plugin.

Clarify the unsupported nature of this interface in the README.

Fixes #147.
David Symonds пре 9 година
родитељ
комит
2fea9e168b
3 измењених фајлова са 7 додато и 1 уклоњено
  1. 6 0
      README.md
  2. 0 0
      protoc-gen-go/grpc/grpc.go
  3. 1 1
      protoc-gen-go/link_grpc.go

+ 6 - 0
README.md

@@ -191,3 +191,9 @@ the `plugins` parameter to protoc-gen-go; the usual way is to insert it into
 the --go_out argument to protoc:
 
 	protoc --go_out=plugins=grpc:. *.proto
+
+## Plugins ##
+
+The `protoc-gen-go/generator` package exposes a plugin interface,
+which is used by the gRPC code generation. This interface is not
+supported and is subject to incompatible changes without notice.

+ 0 - 0
protoc-gen-go/internal/grpc/grpc.go → protoc-gen-go/grpc/grpc.go


+ 1 - 1
protoc-gen-go/link_grpc.go

@@ -31,4 +31,4 @@
 
 package main
 
-import _ "github.com/golang/protobuf/protoc-gen-go/internal/grpc"
+import _ "github.com/golang/protobuf/protoc-gen-go/grpc"