Re: [grpc-io] Re: Finding list of available grpc methods in an api

2017-04-13 Thread Josh Humphries
If you are using Go, I've written a library that provides a better client
API than just the streaming method on the generated service stub:
github.com/jhump/protoreflect/grpcreflect


(It also speaks in terms of *desc.Descriptor types defined in that same repo
, which is a much
richer and more useful API than the raw *DescriptorProto messages defined
in github.com/golang/protobuf/protoc-gen-go/descriptor
)


*Josh Humphries*
jh...@bluegosling.com

On Thu, Apr 13, 2017 at 2:23 PM, 'Carl Mastrangelo' via grpc.io <
grpc-io@googlegroups.com> wrote:

> Yes, if the server has Server Reflection turned on.  It is currently off
> be default.  It requires that the API use protobuf.  You can send an RPC to
> the /grpc.reflection.v1alpha.ServerReflection/ServerReflectionInfo
> method.  It is defined in reflection.proto in each of the repositories.
>
> On Thursday, April 13, 2017 at 10:41:58 AM UTC-7, Constantine wrote:
>>
>> Hi !
>>
>> Is there any way to find out about the list of grpc methods available by
>> an API?
>>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to grpc-io+unsubscr...@googlegroups.com.
> To post to this group, send email to grpc-io@googlegroups.com.
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/grpc-io/8a34a484-b80f-47af-9f56-f3205a55bc0c%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CAO78j%2BJQtSh%3DtzASNFgPqLzz8Ymnsb%2Ba4y00Pirt7zX07aLO6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[grpc-io] Re: Finding list of available grpc methods in an api

2017-04-13 Thread 'Carl Mastrangelo' via grpc.io
Yes, if the server has Server Reflection turned on.  It is currently off be 
default.  It requires that the API use protobuf.  You can send an RPC to 
the /grpc.reflection.v1alpha.ServerReflection/ServerReflectionInfo method. 
 It is defined in reflection.proto in each of the repositories.

On Thursday, April 13, 2017 at 10:41:58 AM UTC-7, Constantine wrote:
>
> Hi !
>
> Is there any way to find out about the list of grpc methods available by 
> an API?
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/8a34a484-b80f-47af-9f56-f3205a55bc0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.