Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserAlreadyExist = errors.New("user already exist") ErrInvalidPassword = errors.New("invalid password") )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Insert(entities.User) error Login(username, password string) bool UpdatePassword(UpdateUserPasswordInput) error CreateDefaultUser() error }
func NewUserService ¶
func NewUserService(repository user.Repository) Service
type UpdateUserPasswordInput ¶
Click to show internal directories.
Click to hide internal directories.