grpc

command module
v0.0.0-...-1475b38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2020 License: MIT Imports: 10 Imported by: 0

README

gRPC

An example of gRPC using protobuf. It is a modification of the official gRPC example.

Setup

  1. Install protobuf compiler and the plugin for Go.

    $ brew install protobuf
    $ go get github.com/golang/protobuf/protoc-gen-go
    $ # Run the following if you haven't done so already.
    $ export PATH="$PATH:$(go env GOPATH)/bin"
    
  2. Generate code from the protobuf definition file.

    $ mkdir hello
    $ protoc -I . hello.proto --go_out=plugins=grpc:hello
    
  3. Run both server and client concurrently.

    $ go run main.go
    

    You can also run the following command that combines steps 2 and 3.

    $ make run
    

Reference and Credits

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
hello-world module
test module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL