github.com/braveheart12/insolar-09-08-19@v0.8.7/network/controller/bootstrap/sessionstate_string.go (about)

     1  // Code generated by "stringer -type=SessionState"; DO NOT EDIT.
     2  
     3  package bootstrap
     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[Authorized-1]
    12  	_ = x[Challenge1-2]
    13  	_ = x[Challenge2-3]
    14  }
    15  
    16  const _SessionState_name = "AuthorizedChallenge1Challenge2"
    17  
    18  var _SessionState_index = [...]uint8{0, 10, 20, 30}
    19  
    20  func (i SessionState) String() string {
    21  	i -= 1
    22  	if i >= SessionState(len(_SessionState_index)-1) {
    23  		return "SessionState(" + strconv.FormatInt(int64(i+1), 10) + ")"
    24  	}
    25  	return _SessionState_name[_SessionState_index[i]:_SessionState_index[i+1]]
    26  }