Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusOK = 0 StatusAuthFailed = 1 StatusAuthInactive = 2 StatusInvalidSession = 3 StatusPermissionDenied = 4 StatusNew = 1 StatusActive = 2 StatusInactive = 3 StatusDeleted = 4 ActionList = 1 ActionView = 2 ActionAdd = 3 ActionUpdate = 4 ActionDelete = 5 ErrInvalidStatus = 1 ErrInvalidUsername = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶
type AuthResponse ¶
type LogoutRequest ¶
type User ¶
type User struct {
Id uuid.UUID `json:id`
Username string `json:username`
Password string `json:password`
Status int `json:status`
CreatedAt time.Time `json:created_at`
}
func (*User) ValidateStatus ¶
func (*User) ValidateUsername ¶
type UserList ¶
type UserList []UserListEntry
type UserListEntry ¶
type UserListResponse ¶
type UserRequest ¶
type UserResponse ¶
Click to show internal directories.
Click to hide internal directories.