Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepository ¶
type UserRepository interface { GetUserByID(ctx context.Context, id string) (*model.User, error) GetUserByEmail(ctx context.Context, email string) (*model.User, error) CreateUser(ctx context.Context, user *model.User) error }
func NewUserRepository ¶
func NewUserRepository(conn *sqlx.DB) UserRepository
NewUserRepository creates a new UserRepository with the provided sql db connection.
Click to show internal directories.
Click to hide internal directories.