|
|
1a6b5f9166
|
Merge origin/master into master
|
2026-06-03 16:36:23 +08:00 |
|
|
|
2734b04d8f
|
refactor: remove 16.8k lines of dead code across all internal packages
- Delete unused files: tempfile subsystem, matcher variants, server/internal
- Remove 200+ unused functions across proxy, ssl, lua, http2/3, stream, variable
- Fix proxy test type errors (backgroundRefresh ctx→Request)
- Move bench/tools mock backend into internal/testutil
- Remove corresponding test functions for all deleted code
|
2026-06-03 16:15:43 +08:00 |
|
xfy911
|
a6152d4dc1
|
docs: add documentation comments for method implementations and test utilities
- Add GoDoc for Warning.String, ParseError.Error
- Add GoDoc for ngxReqAPILayer.String, Phase.String, SocketState.String
- Add GoDoc for ConflictError.Error
- Add GoDoc for noopResolver methods (LookupHost, LookupHostWithCache, Refresh, Start, Stop, Stats)
- Add GoDoc for load balancer Select methods (roundRobin, weightedRoundRobin, ipHash)
- Add GoDoc for WithWSHeaders test utility
- Include author attribution (xfy)
|
2026-06-03 15:28:53 +08:00 |
|
|
|
b290cea0f6
|
fix(converter): 修复 nginx 配置解析空字符串和 upstream URL
- 解析器正确处理空引号字符串 "",使用标记区分空字符串和特殊字符
- upstream server URL 自动添加 http:// 前缀以满足 lolly 配置验证
- proxy_set_header 正确处理空字符串值(如 Connection "")
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-27 11:27:32 +08:00 |
|
|
|
1f672d1a7a
|
fix(lint): 修复所有 lint 错误
- 为导出的函数添加注释 (revive)
- 检查 os.Stdout.Write 返回值 (errcheck)
- 重命名 err 变量避免 shadow declaration (govet)
- 使用 tagged switch 替代 if-else (staticcheck QF1003)
- 用 append 展开替换循环 (staticcheck S1011)
- 添加常量消除重复字符串 (goconst)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-27 10:20:01 +08:00 |
|
|
|
909bd405d2
|
feat(converter,app): 添加 nginx 配置导入功能
- 新增 internal/converter/nginx 解析器和转换器
- main.go 添加 --import/-i 参数支持 nginx 配置导入
- app_test.go 添加导入功能相关测试
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-24 17:12:49 +08:00 |
|