A micro-services demo base on go-kit examples
gateway
|
go-kit transport(http & grpc)
|
go-kit endpoint
|
go-kit service
- sd using
consul
- tracing using
zipkin
- grpc health check endpoint
versions:
protoc-3.19.3
protoc-gen-go@v1.26
protoc-gen-go-grpc@v1.1
reference: https://grpc.io/docs/languages/go/quickstart/
go mod download
If you need consul & zipkin
there are some docker-compose
files in my other github repository(go to reference)
git clone https://github.com/pascallin/devops.git
cd ./zipkin
docker-compose up -d
cd ./consul
docker-compose up -d
All commands stay in [service]/cmd
folder.
go run addsvc/cmd/addsvc.go
http swagger gen
cd usersvc
swag init --generalInfo ./svc.go
- Prometheus
- Dockerfile
- CI/CD