]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/blob - api/const_string.go
Poloniex connection.
[perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git] / api / const_string.go
1 // Code generated by "stringer -type=Status,ErrorCode -output const_string.go"; DO NOT EDIT
2
3 package api
4
5 import "fmt"
6
7 const _Status_name = "OKNOK"
8
9 var _Status_index = [...]uint8{0, 2, 5}
10
11 func (i Status) String() string {
12 if i >= Status(len(_Status_index)-1) {
13 return fmt.Sprintf("Status(%d)", i)
14 }
15 return _Status_name[_Status_index[i]:_Status_index[i+1]]
16 }
17
18 const _ErrorCode_name = "BadRequestEmailExistsExternalServiceTimeoutInternalErrorInvalidCredentialsInvalidEmailInvalidMarketCredentialsInvalidOtpInvalidPasswordNeedOtpValidationNotAuthorizedNotFoundOtpAlreadySetupOtpNotSetupUserNotConfirmed"
19
20 var _ErrorCode_index = [...]uint8{0, 10, 21, 43, 56, 74, 86, 110, 120, 135, 152, 165, 173, 188, 199, 215}
21
22 func (i ErrorCode) String() string {
23 i -= 3
24 if i >= ErrorCode(len(_ErrorCode_index)-1) {
25 return fmt.Sprintf("ErrorCode(%d)", i+3)
26 }
27 return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
28 }