Documentation ¶
Index ¶
- Variables
- type SessionDataResult
- type UserDataResult
- type UserV1
- func (u *UserV1) CreateUser(request *models.NewCredentials) (*models.User, error)
- func (u *UserV1) CredsPostHandler(ec echo.Context) (err error)
- func (u *UserV1) CredsPutHandler(ec echo.Context) (err error)
- func (u *UserV1) GetUserByID(id int64) (data *models.User, err error)
- func (u *UserV1) GetUserDataByCreds(c *models.Credentials) (data *models.User, err error)
- func (u *UserV1) HardDeleteUserByID(id int64) (err error)
- func (u *UserV1) Introspect(next echo.HandlerFunc, minRole types.Role) echo.HandlerFunc
- func (u *UserV1) SoftDeleteUserByID(id int64) (err error)
- func (u *UserV1) UpdateUserByID(id int64, patch *[]byte) (writeData *models.User, err error)
- func (u *UserV1) UpdateUserCredsByID(id int64, c *models.UpdateCredentials) (data *models.User, err error)
- func (u *UserV1) UserDeleteHandler(ec echo.Context) (err error)
- func (u *UserV1) UserPutHandler(ec echo.Context) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMismatchedHashAndPassword = errors.New("hashedPassword is not the hash of the given password") ErrNewPasswordSameAsOld = errors.New("new password same as old") )
Functions ¶
This section is empty.
Types ¶
type SessionDataResult ¶
type SessionDataResult httpsrv.ResultAnsw
type UserDataResult ¶
type UserDataResult httpsrv.ResultAnsw
type UserV1 ¶
type UserV1 struct {
// contains filtered or unexported fields
}
func (*UserV1) CreateUser ¶
func (*UserV1) CredsPostHandler ¶
func (*UserV1) CredsPutHandler ¶
func (*UserV1) GetUserDataByCreds ¶
func (*UserV1) HardDeleteUserByID ¶
func (*UserV1) Introspect ¶
func (*UserV1) SoftDeleteUserByID ¶
func (*UserV1) UpdateUserByID ¶
func (*UserV1) UpdateUserCredsByID ¶
func (*UserV1) UserDeleteHandler ¶
func (*UserV1) UserPutHandler ¶
Click to show internal directories.
Click to hide internal directories.