No Description

dengxiangcun 3ad2dc412e feat:init 5 months ago
cache 3ad2dc412e feat:init 5 months ago
client 3ad2dc412e feat:init 5 months ago
common 3ad2dc412e feat:init 5 months ago
config 3ad2dc412e feat:init 5 months ago
consul 3ad2dc412e feat:init 5 months ago
db 3ad2dc412e feat:init 5 months ago
grpc 3ad2dc412e feat:init 5 months ago
handler 3ad2dc412e feat:init 5 months ago
handler-service 3ad2dc412e feat:init 5 months ago
log 3ad2dc412e feat:init 5 months ago
model 3ad2dc412e feat:init 5 months ago
protobuf 3ad2dc412e feat:init 5 months ago
router 3ad2dc412e feat:init 5 months ago
service 3ad2dc412e feat:init 5 months ago
utils 3ad2dc412e feat:init 5 months ago
vendor 3ad2dc412e feat:init 5 months ago
Dockerfile 3ad2dc412e feat:init 5 months ago
README.md 3ad2dc412e feat:init 5 months ago
build.sh 3ad2dc412e feat:init 5 months ago
docker-compose.yaml 3ad2dc412e feat:init 5 months ago
go.mod 3ad2dc412e feat:init 5 months ago
go.sum 3ad2dc412e feat:init 5 months ago
main.go 3ad2dc412e feat:init 5 months ago
pre-stop.sh 3ad2dc412e feat:init 5 months ago
run.sh 3ad2dc412e feat:init 5 months ago

README.md

Build Status

git 提交规则

参考 https://loveky.github.io/2018/06/04/write-good-commit-message/

使用 作为前缀

  • build:主要目的是修改项目构建系统(例如 glup,webpack,rollup 的配置等)的提交
  • ci:主要目的是修改项目继续集成流程(例如 Travis,Jenkins,GitLab CI,Circle等)的提交
  • docs:文档更新
  • feat:新增功能
  • fix:bug 修复
  • perf:性能优化
  • refactor:重构代码(既没有新增功能,也没有修复 bug)
  • style:不影响程序逻辑的代码修改(修改空白字符,补全缺失的分号等)
  • test:新增测试用例或是更新现有测试
  • revert:回滚某个更早之前的提交
  • chore:不属于以上类型的其他类型

目录结构

config -- 加载配置文件
handler -- 路由Handler
model -- model 的 curd
router -- 存放路由和中间件
        |
        --- middleware 中间件
db -- 数据库包
log -- 打印日志
docs -- 文档

DOCKERFILE 生成Docker镜像
.drone.yml 基于docker持续交付

START

编程语言与框架

使用 GIN 作为开发框架,使用 go mod 管理依赖

api doc

对于接口需要编写 api doc,然后需要把项目打上tag,放到对应文档库,可以生成api文档,在 https://docs.finogeeks.club/docs/regtech/ 供其他人查看

数据库

脚手架数据库采用 mongodb,

日志

日志还没改,还是俊涛那个

编写DOCKERFILE

DOCKERFILE 是将当前代码编写成镜像,在docker环境中只需要下镜像就能启动

持续集成

编写 .drone.yml 文件

性能测试