xservice

package module
v1.2.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 0 Imported by: 0

README

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
# smaller binary size commands with -ldflags="-s -w"
go install -ldflags="-s -w" github.com/xinpianchang/xservice/tools/xservice

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

Documentation

Index

Constants

View Source
const Version = "v1.2.9"

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL