On Job Training (Learn) : Golang - Introduce to gRPC and gRPC Gateway
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
ajikamaludin 496539df0f
setup config file
2 years ago
configs setup config file 2 years ago
pkg/v1/config setup config file 2 years ago
proto setup config file 2 years ago
README.md setup config file 2 years ago
config.yaml setup config file 2 years ago
go.mod setup config file 2 years ago
go.sum setup config file 2 years ago
main.go setup config file 2 years ago

README.md

GO GRPC BASIC

Requirements ( Do It Letter )

Setup Project

  • create proto dir

  • create versioning dir and service dir health

  • create proto file health.proto

  • compile / generate proto with compile-proto.sh in proto dir

  • create config.yaml

  • create pkg dir , create versioning dir and create configs dir

  • go get gopkg.in/yaml.v2 , is a lib for parsing yaml config file to struct

  • create config.go file, implement New and other func

  • create configs dir on root project , create configs.go, this is file that bundle or wrap any services or packages

  • go get github.com/sirupsen/logrus, is a lib to show log on run

  • implement New to configs.go file

  • create main.go, implement to call config and log environtment read is ready