docs(proxy,resolver): 修复注释格式和代码风格
- 调整 stats.go 文档注释缩进格式 - 规范 protoHTTPS 常量对齐 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
52a210ed19
commit
2def9817d8
@ -7,6 +7,7 @@
|
||||
// - 统计数据查询接口
|
||||
//
|
||||
// 主要用途:
|
||||
//
|
||||
// 用于监控 DNS 解析器的性能指标,支持实时获取缓存命中率、
|
||||
// 平均延迟等关键指标,便于系统性能分析和调优。
|
||||
//
|
||||
@ -35,6 +36,7 @@ import (
|
||||
// - GetStats 返回的数据应反映当前时刻的快照
|
||||
//
|
||||
// 使用场景:
|
||||
//
|
||||
// 通常由 DNSResolver 实现此接口,供监控系统或管理接口调用。
|
||||
type StatsCollector interface {
|
||||
// RecordHit 记录缓存命中
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user