mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-04-19 11:52:32 +02:00
36 lines
806 B
Go
36 lines
806 B
Go
|
// Code generated by "stringer -type=ExportKind"; DO NOT EDIT.
|
||
|
|
||
|
package metric
|
||
|
|
||
|
import "strconv"
|
||
|
|
||
|
func _() {
|
||
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||
|
// Re-run the stringer command to generate them again.
|
||
|
var x [1]struct{}
|
||
|
_ = x[CumulativeExporter-1]
|
||
|
_ = x[DeltaExporter-2]
|
||
|
_ = x[PassThroughExporter-4]
|
||
|
}
|
||
|
|
||
|
const (
|
||
|
_ExportKind_name_0 = "CumulativeExporterDeltaExporter"
|
||
|
_ExportKind_name_1 = "PassThroughExporter"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
_ExportKind_index_0 = [...]uint8{0, 18, 31}
|
||
|
)
|
||
|
|
||
|
func (i ExportKind) String() string {
|
||
|
switch {
|
||
|
case 1 <= i && i <= 2:
|
||
|
i -= 1
|
||
|
return _ExportKind_name_0[_ExportKind_index_0[i]:_ExportKind_index_0[i+1]]
|
||
|
case i == 4:
|
||
|
return _ExportKind_name_1
|
||
|
default:
|
||
|
return "ExportKind(" + strconv.FormatInt(int64(i), 10) + ")"
|
||
|
}
|
||
|
}
|