Skip to content

Commit ede24c3

Browse files
committed
Update README.md
1 parent ab4f1c2 commit ede24c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ Make sure that your `$GOPATH/bin` is in your `$PATH`.
181181
path/to/your_service.proto
182182
```
183183
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+
184190
## More Examples
185191
More examples are available under `examples` directory.
186192
* `examplepb/echo_service.proto`, `examplepb/a_bit_of_everything.proto`: service definition
@@ -198,11 +204,13 @@ More examples are available under `examples` directory.
198204
* Mapping streaming APIs to JSON streams
199205
* Mapping HTTP headers with `Grpc-Metadata-` prefix to gRPC metadata
200206
* Optionally emitting API definition for [Swagger](http://swagger.io).
207+
* Import path parameters compatible to protoc-gen-go.
201208
202209
### Want to support
203210
But not yet.
204211
* bytes and enum fields in path parameter. #5
205212
* Optionally generating the entrypoint. #8
213+
* `import_path` parameter
206214
207215
### No plan to support
208216
But patch is welcome.

0 commit comments

Comments
 (0)