github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/runtime/metrics/metrics.go (about)

     1  // Package metrics is a dummy package that is not yet implemented.
     2  
     3  package metrics
     4  
     5  type Description struct{}
     6  
     7  func All() []Description {
     8  	return nil
     9  }
    10  
    11  type Float64Histogram struct{}
    12  
    13  type Sample struct{}
    14  
    15  func Read(m []Sample) {}
    16  
    17  type Value struct{}
    18  
    19  func (v Value) Float64() float64 {
    20  	return 0
    21  }
    22  func (v Value) Float64Histogram() *Float64Histogram {
    23  	return nil
    24  }
    25  func (v Value) Kind() ValueKind {
    26  	return ValueKind{}
    27  }
    28  func (v Value) Uint64() uint64 {
    29  	return 0
    30  }
    31  
    32  type ValueKind struct{}