Documentation ¶
Overview ¶
Package users contains handler implementations of the ./internal/api/restapi/operations/user
Index ¶
- Constants
- func CheckPass(passHash []byte, plainPassword string) bool
- func HashPass(salt []byte, plainPassword string) []byte
- func MakeSalt(n int) []byte
- func NewCreateUserHandler(repo RepoInterface, tm token.Manager) user.CreateUserHandler
- func NewLoginUserHandler(repo RepoInterface, tm token.Manager, expDelay time.Duration) user.LoginUserHandler
- func NewLogoutUserHandler(expDelay time.Duration) user.LogoutUserHandler
- type RepoInterface
Constants ¶
View Source
const ( // SaltLen length of the password hash prefix. SaltLen int = 16 )
Variables ¶
This section is empty.
Functions ¶
func NewCreateUserHandler ¶
func NewCreateUserHandler(repo RepoInterface, tm token.Manager) user.CreateUserHandler
NewCreateUserHandler builder for user.CreateUserHandler interface implementation.
func NewLoginUserHandler ¶
func NewLoginUserHandler(repo RepoInterface, tm token.Manager, expDelay time.Duration) user.LoginUserHandler
NewLoginUserHandler builder for user.LoginUserHandler interface implementation.
func NewLogoutUserHandler ¶
func NewLogoutUserHandler(expDelay time.Duration) user.LogoutUserHandler
NewLoginUserHandler builder for user.LogoutUserHandler interface implementation.
Types ¶
Click to show internal directories.
Click to hide internal directories.