Skip to content

andrefsilveira1/grpc-quick-start

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GRPC

  • Create proto file first
  • Define contracts
  • Create rpc methods
  • Generate proto interfaces with protoc
  • Create main and start server
  • Deal with requests

protoc:

  • Run: protoc --go_out=. --go-grpc_out=. proto/register.proto

How to run:

  • Execute: go run cmd/grpc/main.go
  • Then, start Evans: docker run --rm --network host -it ghcr.io/ktr0731/evans --host localhost --port 50051 --reflection

Dev.to:

Dev.to article

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages