You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,12 @@ Make sure that your `$GOPATH/bin` is in your `$PATH`.
181
181
path/to/your_service.proto
182
182
```
183
183
184
+
## Parameters and flags
185
+
`protoc-gen-grpc-gateway` supports custom mapping from Protobuf `import` to Golang import path.
186
+
They are compatible to [the parameters with same names in`protoc-gen-go`](https://github.com/golang/protobuf#parameters).
187
+
188
+
`protoc-gen-grpc-gateway` also supports some more command line flags to control logging. You can give these flags together with parameters above. Run `protoc-gen-grpc-gateway --help`for more details about the flags.
189
+
184
190
## More Examples
185
191
More examples are available under `examples` directory.
186
192
*`examplepb/echo_service.proto`, `examplepb/a_bit_of_everything.proto`: service definition
@@ -198,11 +204,13 @@ More examples are available under `examples` directory.
198
204
* Mapping streaming APIs to JSON streams
199
205
* Mapping HTTP headers with `Grpc-Metadata-` prefix to gRPC metadata
200
206
* Optionally emitting API definition for [Swagger](http://swagger.io).
207
+
* Import path parameters compatible to protoc-gen-go.
0 commit comments