Versions in this module Expand all Collapse all v1 v1.0.0 Mar 13, 2024 Changes in this version + func CheckPasswordHash(password, hash string) bool + type Repository interface + ChangePassword func(userId string, password string) error + CreateUser func(user entities.User) error + GetUserByEmail func(email string) (*entities.User, error) + GetUserById func(id string) (*entities.User, error) + GetUserByUsername func(username string) (*entities.User, error) + func NewRepository(db *sql.DB) Repository + type Service interface + ChangePassword func(userId string, input entities.ChangePasswordInput) error + Login func(input entities.LoginInput) (string, error) + Me func(userId string) (entities.User, error) + Signup func(input entities.SignupInput) (string, error) + func NewService(repo Repository) Service