Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/harzu/simple-grpc

simple gRPC server
https://github.com/harzu/simple-grpc

Last synced: 22 days ago
JSON representation

simple gRPC server

Awesome Lists containing this project

README

        

# Simple gRPC server

## Dependencies
1. protoc v3
2. golang >= 1.13
3. evans (client for check work)

**main.proto** - schema for rpc

## Build
```bash
$ protoc -I --go_out=plugins=grpc:. main.proto
$ go get -d -v && go build -o .
```

## Run
```bash
$ ./main
```

## Check
```bash
$ evans ./main.proto -p 5000

# evans cli
[email protected]:5000> call SayHello
name (TYPE_STRING) => Alice
```