🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/omar-khawaja/grpc-testing

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/omar-khawaja/grpc-testing

v0.0.0-20221015173200-a250049c6652
Source
Go
Version published
Created
Source

gRPC Testing

To start the gRPC server, run the following command from the root of the repository:

go run cmd/server/server.go 

To execute the gRPC client, run the following command from the root of the repository:

go run cmd/client/client.go

Alternative Ways to Test gRPC Server

Running the client is not necessary to test the gRPC service. The gRPC server implements server reflection (you can read more about it here) so you may use tools like grpcurl to test the service.

Example:

grpcurl -plaintext -d '{"name":"Omar"}' localhost:8080 hello.Greeter/SayHello

The previous command should give you the following output from the gRPC server:

{
  "message": "Hello there Omar"
}

FAQs

Package last updated on 15 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts