Created
March 22, 2022 06:05
-
-
Save hojongs/b3a8ca3a103aa52af333f3eb281371f8 to your computer and use it in GitHub Desktop.
grpcurl example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
REQ='{"service": ""}' | |
URL='grpc.hojongs.com' | |
RPC='grpc.health.v1.Health/Check' | |
grpcurl \ | |
-d "$REQ" \ | |
$URL \ | |
$RPC | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REQ='{"service": ""}' | |
URL='grpc.hojongs.com' | |
RPC='grpc.health.v1.Health/Watch' | |
grpcurl \ | |
-d "$REQ" \ | |
$URL \ | |
$RPC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rpc definition
https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto