Documentation ¶
Index ¶
- func NewUserRepository(conn *sql.DB) users.UserStorer
- type UserRepository
- func (u UserRepository) Insert(ctx context.Context, user *users.User) error
- func (u UserRepository) SelectByEmail(ctx context.Context, email string) (users.User, error)
- func (u UserRepository) SelectByID(ctx context.Context, id int64) (users.User, error)
- func (u UserRepository) Update(ctx context.Context, user *users.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserRepository ¶
func NewUserRepository(conn *sql.DB) users.UserStorer
Types ¶
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func (UserRepository) SelectByEmail ¶
func (UserRepository) SelectByID ¶
Click to show internal directories.
Click to hide internal directories.