Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alindeman/protobuf-presentation
https://github.com/alindeman/protobuf-presentation
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/alindeman/protobuf-presentation
- Owner: alindeman
- Created: 2015-03-18T19:29:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-18T20:34:27.000Z (almost 10 years ago)
- Last Synced: 2024-10-20T07:43:18.667Z (2 months ago)
- Language: Go
- Size: 102 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# protobuf 3.0 alpha / grpc presentation
## Installation (OS X)
```
PREFIX=/Users/alindeman/tmp/protobufbrew install autoconf automake
wget https://github.com/google/protobuf/archive/v3.0.0-alpha-2.tar.gz
./autogen.sh
./configure --prefix=$PREFIX
make
make install
```## Code Generation
```
mkdir -p calculatorcd protos
$PREFIX/bin/protoc --go_out=plugins=grpc:../calculator calculator.proto
```## Usage
### Server
```
go run main.go -listen=127.0.0.1:5001
```### Client
```
go run main.go -connect=127.0.0.1:5001 -operand1=25 -operand2=50
```