Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoginService ¶
func NewLoginService(repository Repository) *service
Types ¶
type LoginInput ¶
type Repository ¶
type Repository interface { LoginRepository(user *model.User) (*model.User, error) UpdateRememberTokenRepository(userID primitive.ObjectID, token string) error }
func NewLoginRepository ¶
func NewLoginRepository(db *mongo.Database) Repository
type UserLoginError ¶
func (*UserLoginError) Error ¶
func (e *UserLoginError) Error() string
type UserLoginNotFoundError ¶
func (*UserLoginNotFoundError) Error ¶
func (e *UserLoginNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.