Documentation ¶
Index ¶
- Variables
- func CheckPasswordLever(ps string) error
- func DeleteUser(ctx *logger.RequestContext, userName string) error
- func EncodePassWord(password string) (string, error)
- func GetUserByName(ctx *logger.RequestContext, userName string) (*model.User, error)
- func IsLastUserPk(ctx *logger.RequestContext, pk int64) bool
- func Login(ctx *logger.RequestContext, userName string, password string, ...) (*model.User, error)
- func UpdateUser(ctx *logger.RequestContext, userName, password string) error
- type CreateUserResponse
- type ListUserResponse
- type LoginInfo
- type LoginResponse
- type UpdateUserArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMismatchedPassword = errors.New("password mismatched")
Functions ¶
func CheckPasswordLever ¶
func DeleteUser ¶
func DeleteUser(ctx *logger.RequestContext, userName string) error
func EncodePassWord ¶
func GetUserByName ¶
func IsLastUserPk ¶
func IsLastUserPk(ctx *logger.RequestContext, pk int64) bool
func UpdateUser ¶
func UpdateUser(ctx *logger.RequestContext, userName, password string) error
Types ¶
type CreateUserResponse ¶
type CreateUserResponse struct {
UserName string `json:"username"`
}
func CreateUser ¶
func CreateUser(ctx *logger.RequestContext, userName, password string) (*CreateUserResponse, error)
type ListUserResponse ¶
type ListUserResponse struct { common.MarkerInfo Users []model.User `json:"userList"` }
func ListUser ¶
func ListUser(ctx *logger.RequestContext, marker string, maxKeys int) (*ListUserResponse, error)
type LoginResponse ¶
type LoginResponse struct {
Authorization string `json:"authorization"`
}
type UpdateUserArgs ¶
type UpdateUserArgs struct {
Password string `json:"password"`
}
Click to show internal directories.
Click to hide internal directories.