From 7a9e5112eaaea58d55f181d3e5296e4ff839921c Mon Sep 17 00:00:00 2001 From: jloup Date: Wed, 14 Feb 2018 14:19:09 +0100 Subject: initial commit --- api/const_string.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 api/const_string.go (limited to 'api/const_string.go') diff --git a/api/const_string.go b/api/const_string.go new file mode 100644 index 0000000..611db40 --- /dev/null +++ b/api/const_string.go @@ -0,0 +1,28 @@ +// Code generated by "stringer -type=Status,ErrorCode -output const_string.go"; DO NOT EDIT + +package api + +import "fmt" + +const _Status_name = "OKNOK" + +var _Status_index = [...]uint8{0, 2, 5} + +func (i Status) String() string { + if i >= Status(len(_Status_index)-1) { + return fmt.Sprintf("Status(%d)", i) + } + return _Status_name[_Status_index[i]:_Status_index[i+1]] +} + +const _ErrorCode_name = "BadRequestEmailExistsInternalErrorInvalidCredentialsInvalidEmailInvalidOtpInvalidPasswordNeedOtpValidationNotAuthorizedNotFoundOtpAlreadySetupOtpNotSetupUserNotConfirmed" + +var _ErrorCode_index = [...]uint8{0, 10, 21, 34, 52, 64, 74, 89, 106, 119, 127, 142, 153, 169} + +func (i ErrorCode) String() string { + i -= 3 + if i >= ErrorCode(len(_ErrorCode_index)-1) { + return fmt.Sprintf("ErrorCode(%d)", i+3) + } + return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]] +} -- cgit v1.2.3