Merge pull request #23603 from riking/patch-1

Replace TODO with a link to the proto file
pull/24095/head
Mark D. Roth 5 years ago committed by GitHub
commit 1370ea77bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      doc/server-reflection.md

@ -23,29 +23,8 @@ We want to be able to answer the following queries:
Specifically, what are the names of the methods, are those methods unary or Specifically, what are the names of the methods, are those methods unary or
streaming, and what are the types of the argument and result? streaming, and what are the types of the argument and result?
``` The first proposed version of the protocol is here:
#TODO(dklempner): link to an actual .proto later. https://github.com/grpc/grpc/blob/master/src/proto/grpc/reflection/v1alpha/reflection.proto
package grpc.reflection.v1alpha;
message ListApisRequest {
}
message ListApisResponse {
repeated google.protobuf.Api apis = 1;
}
message GetMethodRequest {
string method = 1;
}
message GetMethodResponse {
google.protobuf.Method method = 1;
}
service ServerReflection {
rpc ListApis (ListApisRequest) returns (ListApisResponse);
rpc GetMethod (GetMethodRequest) returns (GetMethodResponse);
}
```
Note that a server is under no obligation to return a complete list of all Note that a server is under no obligation to return a complete list of all
methods it supports. For example, a reverse proxy may support server reflection methods it supports. For example, a reverse proxy may support server reflection

Loading…
Cancel
Save