Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService interface { ComparePassword(inputpswd string, dbpswd string) error Register(user *user.User) error Update(user *user.User) error GetUserByID(id uint) (*user.User, error) GetUserByEmail(email string) (*user.User, error) GetUsers() ([]*user.User, error) }
func NewUserService ¶
func NewUserService(repo user_repo.Repo, pswd pswd_repo.Repo, rs rdms.RandomString, hmac hmachash.HMAC, pepper string) UserService
Click to show internal directories.
Click to hide internal directories.