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.
ajikamaludin 496539df0f | 2 years ago | |
---|---|---|
configs | 2 years ago | |
pkg/v1/config | 2 years ago | |
proto | 2 years ago | |
README.md | 2 years ago | |
config.yaml | 2 years ago | |
go.mod | 2 years ago | |
go.sum | 2 years ago | |
main.go | 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 createconfigs
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 , createconfigs.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