...

Source file src/go.opencensus.io/metric/metricdata/type_string.go

Documentation: go.opencensus.io/metric/metricdata

     1  // Code generated by "stringer -type Type"; DO NOT EDIT.
     2  
     3  package metricdata
     4  
     5  import "strconv"
     6  
     7  const _Type_name = "TypeGaugeInt64TypeGaugeFloat64TypeGaugeDistributionTypeCumulativeInt64TypeCumulativeFloat64TypeCumulativeDistributionTypeSummary"
     8  
     9  var _Type_index = [...]uint8{0, 14, 30, 51, 70, 91, 117, 128}
    10  
    11  func (i Type) String() string {
    12  	if i < 0 || i >= Type(len(_Type_index)-1) {
    13  		return "Type(" + strconv.FormatInt(int64(i), 10) + ")"
    14  	}
    15  	return _Type_name[_Type_index[i]:_Type_index[i+1]]
    16  }
    17  

View as plain text