Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func (*UserRepository) CreateUser ¶
func (u *UserRepository) CreateUser(user User) (*User, error)
CreateUser insert the giver user into database with salted password and return the the inserted user with ID
func (*UserRepository) Delete ¶
func (u *UserRepository) Delete(id string) error
func (*UserRepository) Update ¶
func (u *UserRepository) Update(user User) error
Click to show internal directories.
Click to hide internal directories.