aboutsummaryrefslogtreecommitdiff
path: root/api/const_string.go
diff options
context:
space:
mode:
authorjloup <jean-loup.jamet@trainline.com>2018-02-14 14:19:09 +0100
committerjloup <jean-loup.jamet@trainline.com>2018-02-14 14:19:09 +0100
commit7a9e5112eaaea58d55f181d3e5296e4ff839921c (patch)
tree968ed193f42a1fad759cc89ad2f8ad5b0091291e /api/const_string.go
downloadFront-7a9e5112eaaea58d55f181d3e5296e4ff839921c.tar.gz
Front-7a9e5112eaaea58d55f181d3e5296e4ff839921c.tar.zst
Front-7a9e5112eaaea58d55f181d3e5296e4ff839921c.zip
initial commit
Diffstat (limited to 'api/const_string.go')
-rw-r--r--api/const_string.go28
1 files changed, 28 insertions, 0 deletions
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 @@
1// Code generated by "stringer -type=Status,ErrorCode -output const_string.go"; DO NOT EDIT
2
3package api
4
5import "fmt"
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) {
13 return fmt.Sprintf("Status(%d)", i)
14 }
15 return _Status_name[_Status_index[i]:_Status_index[i+1]]
16}
17
18const _ErrorCode_name = "BadRequestEmailExistsInternalErrorInvalidCredentialsInvalidEmailInvalidOtpInvalidPasswordNeedOtpValidationNotAuthorizedNotFoundOtpAlreadySetupOtpNotSetupUserNotConfirmed"
19
20var _ErrorCode_index = [...]uint8{0, 10, 21, 34, 52, 64, 74, 89, 106, 119, 127, 142, 153, 169}
21
22func (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}