github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/appparts/processorkind_string.go (about)

     1  // Code generated by "stringer -type=ProcessorKind"; DO NOT EDIT.
     2  
     3  package appparts
     4  
     5  import "strconv"
     6  
     7  func _() {
     8  	// An "invalid array index" compiler error signifies that the constant values have changed.
     9  	// Re-run the stringer command to generate them again.
    10  	var x [1]struct{}
    11  	_ = x[ProcessorKind_Command-0]
    12  	_ = x[ProcessorKind_Query-1]
    13  	_ = x[ProcessorKind_Actualizer-2]
    14  	_ = x[ProcessorKind_Count-3]
    15  }
    16  
    17  const _ProcessorKind_name = "ProcessorKind_CommandProcessorKind_QueryProcessorKind_ActualizerProcessorKind_Count"
    18  
    19  var _ProcessorKind_index = [...]uint8{0, 21, 40, 64, 83}
    20  
    21  func (i ProcessorKind) String() string {
    22  	if i >= ProcessorKind(len(_ProcessorKind_index)-1) {
    23  		return "ProcessorKind(" + strconv.FormatInt(int64(i), 10) + ")"
    24  	}
    25  	return _ProcessorKind_name[_ProcessorKind_index[i]:_ProcessorKind_index[i+1]]
    26  }