]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/blame - api/const_string.go
Load credentials only when user requests it.
[perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git] / api / const_string.go
CommitLineData
c6aa553f 1// Code generated by "stringer -type=Status,ErrorCode -output const_string.go"; DO NOT EDIT.
7a9e5112 2
3package api
4
c6aa553f 5import "strconv"
7a9e5112 6
7const _Status_name = "OKNOK"
8
9var _Status_index = [...]uint8{0, 2, 5}
10
11func (i Status) String() string {
12 if i >= Status(len(_Status_index)-1) {
c6aa553f 13 return "Status(" + strconv.FormatInt(int64(i), 10) + ")"
7a9e5112 14 }
15 return _Status_name[_Status_index[i]:_Status_index[i+1]]
16}
17
c6aa553f 18const _ErrorCode_name = "BadRequestEmailExistsExternalServiceTimeoutInternalErrorInvalidCredentialsInvalidEmailInvalidMarketCredentialsMarketCredentialsNotConfiguredIPRestrictedApiKeyInvalidOtpInvalidPasswordNeedOtpValidationNotAuthorizedNotFoundOtpAlreadySetupOtpNotSetupUserNotConfirmed"
7a9e5112 19
c6aa553f 20var _ErrorCode_index = [...]uint16{0, 10, 21, 43, 56, 74, 86, 110, 140, 158, 168, 183, 200, 213, 221, 236, 247, 263}
7a9e5112 21
22func (i ErrorCode) String() string {
23 i -= 3
24 if i >= ErrorCode(len(_ErrorCode_index)-1) {
c6aa553f 25 return "ErrorCode(" + strconv.FormatInt(int64(i+3), 10) + ")"
7a9e5112 26 }
27 return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
28}