github.com/braveheart12/insolar-09-08-19@v0.8.7/pulsar/state_string.go (about)

     1  // Code generated by "stringer -type=State"; DO NOT EDIT.
     2  
     3  package pulsar
     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[Failed-0]
    12  	_ = x[WaitingForStart-1]
    13  	_ = x[GenerateEntropy-2]
    14  	_ = x[WaitingForEntropySigns-3]
    15  	_ = x[SendingEntropy-4]
    16  	_ = x[WaitingForEntropy-5]
    17  	_ = x[SendingVector-6]
    18  	_ = x[WaitingForVectors-7]
    19  	_ = x[Verifying-8]
    20  	_ = x[SendingPulseSign-9]
    21  	_ = x[WaitingForPulseSigns-10]
    22  	_ = x[SendingPulse-11]
    23  }
    24  
    25  const _State_name = "FailedWaitingForStartGenerateEntropyWaitingForEntropySignsSendingEntropyWaitingForEntropySendingVectorWaitingForVectorsVerifyingSendingPulseSignWaitingForPulseSignsSendingPulse"
    26  
    27  var _State_index = [...]uint8{0, 6, 21, 36, 58, 72, 89, 102, 119, 128, 144, 164, 176}
    28  
    29  func (i State) String() string {
    30  	if i < 0 || i >= State(len(_State_index)-1) {
    31  		return "State(" + strconv.FormatInt(int64(i), 10) + ")"
    32  	}
    33  	return _State_name[_State_index[i]:_State_index[i+1]]
    34  }