modulepackage
0.0.0-20250302102456-bf589f8987b2
Repository: https://github.com/limoxi/ghost.git
Documentation: pkg.go.dev
# README
ghost - 为gin套上工程化DDD的外衣-。-
使个人或团队能够更简单、快速地搭建起一个工程化的DDD架构的web服务
设计目标
在领域驱动设计的指导下按照分层架构,
实现统一的服务调用、可扩展的适配器插槽、清晰规范的领域方法论
依赖
- go ^1.17
- go mod
安装
go get -u github.com/limoxi/ghost
使用
TODO
- 支持多种服务调用, restApi, RPC, websocket ...
- resource api设计
- 中间件设计
- orm(不采用依赖倒置原则进行接口设计,因为大部分场景下存储层的选择是固定的且不会改变)
- 数据库事务应用策略
- 配置文件设计
- 异常处理
- DDD规范
- 事件机制
- 分布式锁
- 日志
- 自动生成api文档
项目参考
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
Emit 将事件暂存到ctx中,等当前请求完成后再触发.
EmitAll 触发暂存的事件.
生成markdown格式的接口文档.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SyncDB 将定义的model同步到数据库.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
业务错误.
No description provided by the author
业务成功.
系统错误.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DomainModel 领域模型.
DomainService 领域服务.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author