github.com/volatiletech/authboss@v2.4.1+incompatible/stringers.go (about)

     1  // Code generated by "stringer -output stringers.go -type Event"; DO NOT EDIT.
     2  
     3  package authboss
     4  
     5  import "strconv"
     6  
     7  const _Event_name = "EventRegisterEventAuthEventAuthHijackEventOAuth2EventAuthFailEventOAuth2FailEventRecoverStartEventRecoverEndEventGetUserEventGetUserSessionEventPasswordReset"
     8  
     9  var _Event_index = [...]uint8{0, 13, 22, 37, 48, 61, 76, 93, 108, 120, 139, 157}
    10  
    11  func (i Event) String() string {
    12  	if i < 0 || i >= Event(len(_Event_index)-1) {
    13  		return "Event(" + strconv.FormatInt(int64(i), 10) + ")"
    14  	}
    15  	return _Event_name[_Event_index[i]:_Event_index[i+1]]
    16  }