github.com/gogf/gf/v2@v2.7.4/os/gmetric/gmetric_noop_observable_updown_counter_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 // noopObservableUpDownCounterPerformer is an implementer for interface ObservableUpDownCounterPerformer 10 // with no truly operations. 11 type noopObservableUpDownCounterPerformer struct{} 12 13 // newNoopObservableUpDownCounterPerformer creates and returns a ObservableUpDownCounterPerformer 14 // with no truly operations. 15 func newNoopObservableUpDownCounterPerformer() ObservableUpDownCounterPerformer { 16 return noopObservableUpDownCounterPerformer{} 17 } 18 19 func (noopObservableUpDownCounterPerformer) observable() {}