sponge is a powerful code generation tool, a microservices framework based on gin and gRPC.
Go to file
2022-10-09 22:24:12 +08:00
api optimised code 2022-10-07 23:49:45 +08:00
build update deploy 2022-10-07 23:16:56 +08:00
cmd/serverNameExample optimised code 2022-10-07 23:49:45 +08:00
configs optimised code 2022-10-07 23:49:45 +08:00
deployments update deploy 2022-10-07 23:16:56 +08:00
docs optimised code 2022-10-07 23:49:45 +08:00
internal update internal code 2022-10-07 23:35:14 +08:00
pkg update discovery print 2022-10-09 22:24:12 +08:00
scripts upate scripts 2022-10-07 22:50:45 +08:00
test update discovery print 2022-10-09 22:24:12 +08:00
third_party init 2022-09-19 23:24:11 +08:00
.gitignore rename 2022-09-29 23:32:03 +08:00
.golangci.yml optimised code 2022-10-07 23:49:45 +08:00
doc.go optimised code 2022-10-07 23:49:45 +08:00
go.mod optimised code 2022-10-07 23:49:45 +08:00
go.sum optimised code 2022-10-07 23:49:45 +08:00
Jenkinsfile update deploy 2022-10-07 23:16:56 +08:00
LICENSE Initial commit 2022-09-19 23:18:08 +08:00
Makefile upate scripts 2022-10-07 22:50:45 +08:00
README.md optimised code 2022-10-07 23:49:45 +08:00

sponge

sponge 是一个微服务框架支持http和grpc及服务治理支持代码自动生成。

功能:


目录结构

目录结构遵循golang-standards/project-layout

├── cmd                 # 应用程序的目录
├── config              # 配置文件目录
├── docs                # 设计和用户文档
├── internal            # 私有应用程序和库代码
│   ├── cache           # 基于业务封装的cache
│   ├── dao             # 数据访问
│   ├── ecode           # 自定义业务错误码
│   ├── handler         # http的业务功能实现
│   ├── model           # 数据库 model
│   ├── routers         # http 路由
│   ├── server          # 服务入口包括http和grpc服务
│   └── service         # grpc的业务功能实现
├── pkg                 # 外部应用程序可以使用的库代码
├── scripts             # 存放用于执行各种构建,安装,分析等操作的脚本
├── third_party         # 外部辅助工具,分叉代码和其他第三方工具
├── test                # 额外的外部测试应用程序和测试数据
├── build               # 打包和持续集成
└── deployments         # IaaS、PaaS、系统和容器编排部署配置和模板

运行

make run