aboutsummaryrefslogtreecommitdiff
path: root/api/const_string.go
diff options
context:
space:
mode:
authorjloup <jloup@jloup.work>2018-05-13 14:10:21 +0100
committerjloup <jloup@jloup.work>2018-05-13 14:10:21 +0100
commitc6aa553f48d1014f651441bbd9e023508d0a819c (patch)
treebb9af139ba3d8d4c9cc74114473e03eaef0d9004 /api/const_string.go
parenta7873be28f3bcda36dd9fc54df238738c4c2b998 (diff)
downloadFront-c6aa553f48d1014f651441bbd9e023508d0a819c.tar.gz
Front-c6aa553f48d1014f651441bbd9e023508d0a819c.tar.zst
Front-c6aa553f48d1014f651441bbd9e023508d0a819c.zip
Load credentials only when user requests it.
Diffstat (limited to 'api/const_string.go')
-rw-r--r--api/const_string.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/api/const_string.go b/api/const_string.go
index 58ed230..5af7574 100644
--- a/api/const_string.go
+++ b/api/const_string.go
@@ -1,8 +1,8 @@
1// Code generated by "stringer -type=Status,ErrorCode -output const_string.go"; DO NOT EDIT 1// Code generated by "stringer -type=Status,ErrorCode -output const_string.go"; DO NOT EDIT.
2 2
3package api 3package api
4 4
5import "fmt" 5import "strconv"
6 6
7const _Status_name = "OKNOK" 7const _Status_name = "OKNOK"
8 8
@@ -10,19 +10,19 @@ var _Status_index = [...]uint8{0, 2, 5}
10 10
11func (i Status) String() string { 11func (i Status) String() string {
12 if i >= Status(len(_Status_index)-1) { 12 if i >= Status(len(_Status_index)-1) {
13 return fmt.Sprintf("Status(%d)", i) 13 return "Status(" + strconv.FormatInt(int64(i), 10) + ")"
14 } 14 }
15 return _Status_name[_Status_index[i]:_Status_index[i+1]] 15 return _Status_name[_Status_index[i]:_Status_index[i+1]]
16} 16}
17 17
18const _ErrorCode_name = "BadRequestEmailExistsExternalServiceTimeoutInternalErrorInvalidCredentialsInvalidEmailInvalidMarketCredentialsIPRestrictedApiKeyInvalidOtpInvalidPasswordNeedOtpValidationNotAuthorizedNotFoundOtpAlreadySetupOtpNotSetupUserNotConfirmed" 18const _ErrorCode_name = "BadRequestEmailExistsExternalServiceTimeoutInternalErrorInvalidCredentialsInvalidEmailInvalidMarketCredentialsMarketCredentialsNotConfiguredIPRestrictedApiKeyInvalidOtpInvalidPasswordNeedOtpValidationNotAuthorizedNotFoundOtpAlreadySetupOtpNotSetupUserNotConfirmed"
19 19
20var _ErrorCode_index = [...]uint8{0, 10, 21, 43, 56, 74, 86, 110, 128, 138, 153, 170, 183, 191, 206, 217, 233} 20var _ErrorCode_index = [...]uint16{0, 10, 21, 43, 56, 74, 86, 110, 140, 158, 168, 183, 200, 213, 221, 236, 247, 263}
21 21
22func (i ErrorCode) String() string { 22func (i ErrorCode) String() string {
23 i -= 3 23 i -= 3
24 if i >= ErrorCode(len(_ErrorCode_index)-1) { 24 if i >= ErrorCode(len(_ErrorCode_index)-1) {
25 return fmt.Sprintf("ErrorCode(%d)", i+3) 25 return "ErrorCode(" + strconv.FormatInt(int64(i+3), 10) + ")"
26 } 26 }
27 return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]] 27 return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
28} 28}