79443104

Date: 2025-02-16 12:12:43
Score: 3.5
Natty:
Report link

try to dial with insecure.NewCredentials() for plaintext communication and then create a reflection client with reflectionpb.NewServerReflectionClient, send a ServerReflectionRequest with the ListServices method using ServerReflectionInfo. The response from the server should contain a list of available services, which you can print. This copies the behavior of grpcurl -plaintext localhost:50051 list but in client code.. Do you need an example code?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: MJepbarov