1 Star 0 Fork 0

c./goframe

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gmetric_noop_updown_counter_performer.go 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
admin 提交于 2024-09-04 23:05 . 2024-09-04
// 版权所有 (c) GoFrame (https://goframe.org),保留所有权利。
//
// 本源代码遵循MIT许可协议。若未随此文件分发MIT许可证的副本,
// 您可以从 https://github.com/gogf/gf 获取。
// md5:c14c707c81272457
package gmetric
import (
"context"
)
// noopUpDownCounterPerformer 是一个实现了 CounterPerformer 接口但没有实际操作的实现者。 md5:072081413ac6be4f
type noopUpDownCounterPerformer struct{}
// newNoopUpDownCounterPerformer 创建并返回一个没有真正操作的CounterPerformer。 md5:e7e1846c3b34c796
func newNoopUpDownCounterPerformer() UpDownCounterPerformer {
return noopUpDownCounterPerformer{}
}
// Inc 将计数器增加1。 md5:81a1f6bd9f2e53ca
func (noopUpDownCounterPerformer) Inc(ctx context.Context, option ...Option) {}
// Dec 将计数器减1。 md5:a57e133a130dce44
func (noopUpDownCounterPerformer) Dec(ctx context.Context, option ...Option) {}
// Add 将给定的值添加到计数器中。 md5:52aba4021b7f61b2
func (noopUpDownCounterPerformer) Add(ctx context.Context, increment float64, option ...Option) {}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/go_888/goframe.git
git@gitee.com:go_888/goframe.git
go_888
goframe
goframe
7e18bcecf929

搜索帮助