增加:
1. ✅ 监控指标收集 2. ✅ 中间件机制 3. ✅ 配置热更新 4. ✅ 优雅关闭 5. ✅ 插件系统 6. ✅ API文档 7. ✅ 认证授权系统 8. ✅ 请求/响应压缩优化
This commit is contained in:
@@ -107,7 +107,7 @@ func WithHealthChecker(hc *healthcheck.HealthChecker) Option {
|
||||
}
|
||||
|
||||
// WithMetrics 设置监控指标
|
||||
func WithMetrics(m metrics.Metrics) Option {
|
||||
func WithMetrics(m metrics.MetricsCollector) Option {
|
||||
return func(opt *Options) {
|
||||
opt.Metrics = m
|
||||
}
|
||||
|
Reference in New Issue
Block a user