Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
struct wrapper for db
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
UserRepository
func (*UserRepository) Create ¶
func (r *UserRepository) Create(u *model.User) error
Create new users table colon in db
func (*UserRepository) FindByEmail ¶
func (r *UserRepository) FindByEmail(email string) (*model.User, error)
find user in db by email
Click to show internal directories.
Click to hide internal directories.