Documentation ¶
Index ¶
- func GetUser(repo *himeji.Himeji, uid string, result *himeji.Data) <-chan bool
- func GetUserByUsername(repo *himeji.Himeji, username string, result *himeji.Data) <-chan bool
- func StoreUser(repo *himeji.Himeji, user *himeji.Data) <-chan bool
- type ModelUser
- type PostUser
- type PrivateUser
- type PublicUser
- type RequestPostUser
- type RequestPublicUser
- type RequestUserInfo
- type RequestUserPassword
- type Uid
- type UserDate
- type UserId
- type UserInfo
- type UserPassword
- type UserPermissions
- type UserProps
- type UserSecurity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserByUsername ¶
Types ¶
type ModelUser ¶
type ModelUser struct { Uid UserInfo UserProps UserSecurity UserPermissions }
type PostUser ¶
type PostUser struct { UserInfo UserPassword }
type PrivateUser ¶
type PrivateUser struct {
Email string `json:"email" bson:"email"`
}
type PublicUser ¶
type RequestPostUser ¶
type RequestPostUser struct {
Value PostUser `json:"data"`
}
func GetRequestPostUser ¶
func GetRequestPostUser(c echo.Context) *RequestPostUser
type RequestPublicUser ¶
type RequestPublicUser struct {
Value PublicUser `json:"data"`
}
type RequestUserInfo ¶
type RequestUserInfo struct {
Value UserInfo `json:"data"`
}
func GetRequestUserInfo ¶
func GetRequestUserInfo(c echo.Context) *RequestUserInfo
type RequestUserPassword ¶
type RequestUserPassword struct {
Value UserPassword `json:"data"`
}
func GetRequestUserPassword ¶
func GetRequestUserPassword(c echo.Context) *RequestUserPassword
type UserDate ¶
type UserDate struct {
DateCreated int64 `json:"date-created" bson:"date-created"`
}
type UserInfo ¶
type UserInfo struct { PublicUser PrivateUser }
type UserPassword ¶
type UserPassword struct {
Password string `json:"password"`
}
type UserPermissions ¶
type UserSecurity ¶
Click to show internal directories.
Click to hide internal directories.