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