 耗子andClaude Opus 4.8
|
443516a2cf
|
refactor!: 迁移至 samber/do 依赖注入与三层架构
依赖注入:
- 移除 google/wire(含 wire.go/wire_gen.go 与全部 ProviderSet),
改用 samber/do v2 单注入器 + 双入口惰性构建
- 贡献模型替代命令式注册:路由 routes:、命令 commands:、
任务 jobs: 前缀经 internal/registry 收集与校验
- 构造函数统一 func NewXxx(i do.Injector) (T, error)
三层架构:
- 补全用例层:每个 biz.XxxRepo 配 XxxUsecase,
service/command/job 表现层只依赖用例,不再直接引用仓储
路由与文档:
- route/http.go 按域拆为声明式 Endpoint 贡献,
Endpoint 承载登录白名单与端点限流语义
- 调试模式下提供 OpenAPI 3.1 文档:/openapi.json 与 /docs(Scalar),
从 validate 标签生成
目录与依赖:
- internal/http/{middleware,request,rule} 拍平至 internal/*
- CLI 命令拆至 internal/command
- 日志轮转 timberjack 换为 libtnb/logrotate
- 升级 validator/cron/sessions/gormstore/sqlite/securecookie
- 数据库迁移保持 gormigrate 不变
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
2026-07-09 21:54:22 +08:00 |
|
耗子
|
3bdd3711b0
|
fix: SQLite使用NORMAL模式启动
|
2026-07-03 16:29:31 +08:00 |
|
 耗子andClaude Opus 4.7
|
f024381660
|
feat(panel): 数据库故障降级、健康告警与检测
- 网站统计聚合器 flush 失败也 commit(丢弃已 drain 增量),防止 DB
长期不可写时内存无界累积导致 OOM/CPU 100%
- 势态感知同样在 upsert 失败时上报健康问题
- 新增 internal/app.Health 全局健康状态注册表,通过 /home/health 暴露
- 前端 layout 顶部新增 HealthBanner,DB 故障时红色横幅提醒并给出修复引导
- acepanel fix 检测数据库损坏改用 PRAGMA quick_check,能识别 malformed
等仅在查询时才暴露的静默损坏
- 主库与辅助库 DSN 一律设为 synchronous(FULL),减少宿主 write-back
缓存丢失 fsync 导致的损坏概率
- 移除 debug.SetMemoryLimit(256MB):软上限在活对象超限时会驱动 GC 反复
追赶不可回收对象,反而放大 CPU 打满
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-07-03 04:21:10 +08:00 |
|
半岛的蒟蒻bddjr
|
e947259b86
|
fix: go.mod module github.com/acepanel/panel/v3 (#1423)
|
2026-02-25 18:07:00 +08:00 |
|
耗子
|
68125fb1e6
|
fix: lint
|
2026-02-12 07:52:59 +08:00 |
|
耗子
|
94704deb1b
|
feat: sqlite测试
|
2026-02-12 07:31:47 +08:00 |
|
耗子
|
932f48044b
|
feat: sqlite测试
|
2026-02-12 07:28:00 +08:00 |
|
耗子
|
0c89d77221
|
feat: 优化内存占用
|
2026-02-12 03:34:30 +08:00 |
|
耗子
|
e9b299f874
|
feat: 优化日志记录
|
2026-01-12 20:35:58 +08:00 |
|
耗子
|
70c940569c
|
fix: 修复一些遗留问题
|
2026-01-09 21:38:28 +08:00 |
|
耗子
|
61b74b31d9
|
feat: 优化包大小
|
2026-01-04 04:47:56 +08:00 |
|
耗子
|
5ee35cbd30
|
refactor: rename module
|
2025-09-18 23:24:03 +08:00 |
|
耗子
|
261e92a659
|
feat: 优化会话机制
|
2025-09-17 05:09:15 +08:00 |
|
耗子
|
5584cc18cb
|
refactor: 重命名项目
|
2025-07-23 04:50:25 +08:00 |
|
耗子
|
c20bfdc3ea
|
fix: sqlite dsn error
|
2025-07-07 03:04:20 +08:00 |
|
耗子
|
6cf4e0c0cc
|
feat: 数据库添加_txlock=immediate参数
|
2025-06-17 20:03:07 +08:00 |
|
耗子
|
fe4e3850c9
|
feat: test new sqlite driver
|
2025-02-16 16:07:22 +08:00 |
|
耗子
|
c966920e29
|
feat: rename slogGorm to sloggorm
|
2025-01-16 01:00:21 +08:00 |
|
耗子
|
8b0e7bcaa9
|
refactor: 新年快乐
|
2025-01-01 15:33:47 +08:00 |
|
耗子
|
1fdc86cc0a
|
fix: lint
|
2024-12-15 23:31:08 +08:00 |
|
耗子
|
cd1d7c9757
|
refactor: 初步实现依赖注入
|
2024-12-15 23:01:17 +08:00 |
|
耗子
|
c2aa4a4904
|
feat: 去除迁移的强校验
|
2024-11-27 03:48:43 +08:00 |
|
耗子
|
44c370a119
|
feat(#305): 使用slog记录所有日志
|
2024-10-28 20:18:25 +08:00 |
|
耗子
|
497e357d65
|
feat: 初步完成升级方法
|
2024-10-12 04:31:23 +08:00 |
|
耗子
|
119183971d
|
feat: 支持且默认HTTPS
|
2024-10-12 02:52:23 +08:00 |
|
耗子
|
9cd80f8d1b
|
fix: panel path
|
2024-10-10 21:50:50 +08:00 |
|
耗子
|
a37393b688
|
feat: 日志记录器优化
|
2024-10-02 02:18:36 +08:00 |
|
耗子
|
c18a96e439
|
feat: 设置完善及日志记录器
|
2024-10-02 01:49:07 +08:00 |
|
耗子
|
54470f87b0
|
feat: 命令行获取信息和初始化
|
2024-09-30 17:52:23 +08:00 |
|
耗子
|
2e26af435a
|
refactor: rename app to panel
|
2024-09-18 19:08:45 +08:00 |
|
![renovate[bot]](/assets/img/avatar_default.png) 耗子andrenovate[bot]
|
194287554e
|
refactor: migrate to chi framework (#165)
* refactor: 重构部分完成
* fix: 添加.gitkeep
* fix: build
* fix: lint
* fix: lint
* chore(deps): Update module github.com/go-playground/validator/v10 to v10.22.1 (#162)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): Update module gorm.io/gorm to v1.25.12 (#161)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): Update module golang.org/x/net to v0.29.0 (#159)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* workflow: 更新工作流
* workflow: test new download
* feat: merge frontend project
* workflow: fix frontend build
* workflow: fix frontend build
* workflow: fix frontend build
* workflow: fix frontend build
* workflow: fix frontend build
* workflow: fix frontend build
* workflow: fix frontend build
* workflow: fix frontend build
* workflow: fix frontend build
* workflow: fix frontend build
* workflow: fix frontend build
* workflow: fix frontend build
* workflow: fix frontend build
* workflow: update to ubuntu-24.04
* workflow: rename build-*
* workflow: 修改fetch-depth
* chore(deps): Update dependency eslint to v9 (#164)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(frontend): update dependences
* chore(frontend): fix lint
* chore(frontend): fix lint
* workflow: add govulncheck
* workflow: disable nilaway
* feat: 使用新的压缩解压库
* fix: 测试
* fix: 测试
* fix: 测试
* feat: 添加ntp包
* chore(deps): Lock file maintenance (#168)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): Update module github.com/go-resty/resty/v2 to v2.15.0 (#167)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): Update dependency @iconify/json to v2.2.249 (#169)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* feat: 添加限流器
* feat: 调整登录限流
* feat: 证书
* fix: lint
* feat: 证书dns
* feat: 证书acme账号
* fix: 修改UserID导致的一系列问题
* feat: 低配版任务队列
* feat: 队列完成
* fix: lint
* fix: lint
* fix: swagger和前端路由
* fix: 去掉ntp测试
* feat: 完成插件接口
* feat: 完成cron
* feat: 完成safe
* chore(deps): Update dependency vue to v3.5.6 (#170)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): Update dependency @vueuse/core to v11.1.0 (#171)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): Update dependency vite to v5.4.6 (#173)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): Update unocss monorepo to v0.62.4 (#172)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore: update renovate config
* feat: 新的firewall客户端
* fix: lint
* feat: firewall完成
* feat: ssh完成
* feat: 容器完成1/2
* feat: 容器完成
* feat: 文件完成
* feat: systemctl及设置
* fix: windows编译
* fix: session not work
* fix: migrate not work
* feat: 前端路由
* feat: 初步支持cli
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
2024-09-18 01:43:14 +08:00 |
|