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