github.com/gogf/gf/v2@v2.7.4/os/gmetric/gmetric_noop_histogram_performer.go (about) 1 // Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved. 2 // 3 // This Source Code Form is subject to the terms of the MIT License. 4 // If a copy of the MIT was not distributed with this file, 5 // You can obtain one at https://github.com/gogf/gf. 6 7 package gmetric 8 9 // noopHistogramPerformer is an implementer for interface HistogramPerformer with no truly operations. 10 type noopHistogramPerformer struct{} 11 12 // newNoopHistogramPerformer creates and returns a HistogramPerformer with no truly operations. 13 func newNoopHistogramPerformer() HistogramPerformer { 14 return noopHistogramPerformer{} 15 } 16 17 // Record adds a single value to the histogram. The value is usually positive or zero. 18 func (noopHistogramPerformer) Record(increment float64, option ...Option) {}