grpcurl
| info | |
|---|---|
| name | grpcurl |
| full name | grpcurl |
| aliases | grpcurl |
| tags | grpc |
gRPC를 테스트하기 위한 명령줄 도구 https://github.com/fullstorydev/grpcurl/releases
USAGE
./grpcurl [flags] [address] [list|describe] [symbol] # 도움말 grpcurl -help # 서비스 목록 조회 grpcurl localhost:9090 list # 특정 서비스 설명 grpcurl localhost:9090 describe greet.Greeter # 메서드 호출 (JSON 요청) grpcurl -d '{"name": "World"}' localhost:9090 greet.Greeter/SayHello # plaintext (TLS 없이) grpcurl -plaintext -d '{"message": "test"}' localhost:50051 example.Echo/UnaryEcho # 파일에서 요청 읽기 grpcurl -d @ localhost:9090 MyService/Method < request.json
grpcurl [flags…] [address] [list|describe]-d JSON파라미터 overloads-plaintextTLS 없이-proto PATHreflection 없이 .proto 파일로 확인list서비스 목록 조회describe특정 서비스 설명
Installation
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest