mirror of
https://gitee.com/johng/gf.git
synced 2024-12-03 12:47:50 +08:00
19 lines
768 B
Go
19 lines
768 B
Go
// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.
|
|
//
|
|
// This Source Code Form is subject to the terms of the MIT License.
|
|
// If a copy of the MIT was not distributed with this file,
|
|
// You can obtain one at https://github.com/gogf/gf.
|
|
|
|
package gmetric
|
|
|
|
// noopHistogramPerformer is an implementer for interface HistogramPerformer with no truly operations.
|
|
type noopHistogramPerformer struct{}
|
|
|
|
// newNoopHistogramPerformer creates and returns a HistogramPerformer with no truly operations.
|
|
func newNoopHistogramPerformer() HistogramPerformer {
|
|
return noopHistogramPerformer{}
|
|
}
|
|
|
|
// Record adds a single value to the histogram. The value is usually positive or zero.
|
|
func (noopHistogramPerformer) Record(increment float64, option ...Option) {}
|