docs: 为其余模块添加标准化 godoc 注释

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
xfy 2026-04-20 11:23:04 +08:00
parent 13bfc090f7
commit 3d80b12f7d
5 changed files with 7 additions and 5 deletions

View File

@ -530,7 +530,7 @@ func (a *App) gracefulUpgrade() {
// sigName 返回信号名称(用于日志输出)。
func sigName(sig syscall.Signal) string {
//nolint:exhaustive
//nolint:exhaustive // 只处理应用关心的信号
switch sig {
case syscall.SIGTERM:
return "SIGTERM"

View File

@ -5,6 +5,7 @@
// - IsValidAlgorithm 算法有效性校验函数
//
// 主要用途:
//
// 用于校验和枚举系统支持的负载均衡算法类型,供配置解析和路由选择使用。
//
// 注意事项:

View File

@ -9,6 +9,7 @@
// - 所有算法的横向对比测试
//
// 主要用途:
//
// 用于评估负载均衡算法在不同规模下的性能特征,指导算法选型和参数调优。
//
// 注意事项: