sponge/README.md
2022-09-27 22:30:59 +08:00

2.3 KiB
Raw Blame History

sponge

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

功能:


目录结构

目录结构遵循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