-
Notifications
You must be signed in to change notification settings - Fork 1
endpoint for status of the user #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 11 commits
faae299
20f72fa
65bbe37
2c4b6c6
64c67ab
4577031
bec08bc
44790bf
27d71fe
7c9c4d3
a32ad2a
e1d40c4
bf251d2
df88e72
62a028f
4970e25
b3d0dc6
18481a3
603a2bc
c640ac1
6e80038
5b4b354
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,3 +30,15 @@ const ( | |
|
|
||
| // NoExpiryValue is the returned value for a persistent key expiry time | ||
| const NoExpiryValue = -1 | ||
|
|
||
| // Status represents the status of the security mode | ||
| type Status int | ||
|
||
|
|
||
| const ( | ||
| // NotSet means that security mode is not activated | ||
| NotSet Status = iota | ||
| // ManuallySet means that security mode was activated because of failures | ||
| ManuallySet | ||
| // AutomaticallySet means that security mode was activated by user with SetSecurityModeNoExpire | ||
| AutomaticallySet | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,11 @@ type SecurityModeNoExpire struct { | |
| UserAddr string `json:"user"` | ||
| } | ||
|
|
||
| // UserStatusResponse is the JSON response for the user status interrogation | ||
| type UserStatusResponse struct { | ||
| SecurityStatus int `json:"status"` | ||
|
||
| } | ||
|
|
||
| // SignMessageResponse is the service response to the sign message request | ||
| type SignMessageResponse struct { | ||
| Message string `json:"message"` | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we need to also generate swagger files based on these changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed