Skip to content

RaLazo/grpcSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GRPC Server Example

This is an basic example of GRPC.

Dependencies

To install your dependencies you need to type the following command:

go mod download

go version go1.15.2 windows/amd64

starting the Example

To run the GRPC Server just type in the following command:

go run server.go

For the client you need to type in this command:

go run client.go

protobuff

to translate the .proto file into go code you first need to install the binary on your local machine. the current releases can be found at ProtocolBuffers Releases.

The following command shows you how to translate the .proto file into golang code.

make you sure you have created the folder where you want to but in your go code

/path/to/binary/protoc.exe --go_out=plugins=grpc:chat .\chat.proto

Author

Rafael Lazenhofer

About

This is an basic GRPC Example in Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages