Skip to content

xinpianchang/xservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

421863e Â· Jan 27, 2022
Jul 14, 2021
Dec 27, 2021
Nov 11, 2021
Jan 13, 2022
Jan 14, 2022
Jan 14, 2022
Jul 8, 2021
Jun 26, 2021
Jul 19, 2021
Jun 26, 2021
Jul 8, 2021
Oct 11, 2021
Jan 27, 2022
Jan 27, 2022

Repository files navigation

xservice

License Go Report Card Go.Dev reference

Another excellent micro service framework

Features

  • RESTful API (base on echo/v4)
  • gRPC & gRPC gateway service & Swagger document generation
  • Service discovery (base on ETCD/v3)
  • gRPC & gRPC-Gateway & RESTful API all in one tcp port, mux via cmux
  • Builtin middlewares & easily to extended
  • Prometheus & Tracing (jaeger) & Sentry integrated
  • Embed toolset for code generation (e.g. GORM & model CRUD & project layout)

Quick start

Install toolset.

go install github.com/xinpianchang/xservice/tools/xservice@latest

Create new project via toolset.

mkdir hello
cd hello
xservice new --module github.com/example/hello

Open the generated README.md file, following the initialize steps and happing coding. 🎉

Resource