Categorygithub.com/pascallin/go-kit-application
module
0.0.0-20220902085847-effef60f7eaa
Repository: https://github.com/pascallin/go-kit-application.git
Documentation: pkg.go.dev

# README

Go Report Card Go Reference

go-git-application

A micro-services demo base on go-kit examples

Project structure

Code structure

gateway
|
go-kit transport(http & grpc)
|
go-kit endpoint
|
go-kit service

go-kit standard package

  • sd using consul
  • tracing using zipkin

Other standard

  • grpc health check endpoint

Run

Grpc prepare

versions:
protoc-3.19.3
[email protected]
[email protected]

reference: https://grpc.io/docs/languages/go/quickstart/

Dependent packages

go mod download

Infrastructure services

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

Development

All commands stay in [service]/cmd folder.

go run addsvc/cmd/addsvc.go

http swagger gen

cd usersvc
swag init --generalInfo ./svc.go

TODO list

  • Prometheus
  • Dockerfile
  • CI/CD

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author