Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
Types ¶
type Repository ¶
type Repository interface { GetUserById(id string) (*entities.User, error) GetUserByEmail(email string) (*entities.User, error) GetUserByUsername(username string) (*entities.User, error) CreateUser(user entities.User) error ChangePassword(userId string, password string) error }
func NewRepository ¶
func NewRepository(db *sql.DB) Repository
type Service ¶
type Service interface { Login(input entities.LoginInput) (string, error) Signup(input entities.SignupInput) (string, error) Me(userId string) (entities.User, error) ChangePassword(userId string, input entities.ChangePasswordInput) error }
func NewService ¶
func NewService(repo Repository) Service
Click to show internal directories.
Click to hide internal directories.