Documentation ¶
Index ¶
- type UserInteractor
- func (ui *UserInteractor) Change(user *internal_user.UserAccount, email string) (result *sql.Result, err error)
- func (ui *UserInteractor) ChangePassword(ua *internal_user.UserAccount, newP string) (result *sql.Result, err error)
- func (ui *UserInteractor) ChangePlan(userAccount *internal_user.UserAccount) (result *sql.Result, err error)
- func (ui *UserInteractor) Destroy(userAccount *internal_user.UserAccount) (result *sql.Result, err error)
- func (userInteractor *UserInteractor) IndexUser(email string) (user *internal_user.UserAccount, err error)
- func (userInteractor *UserInteractor) IndexUserAndPlan(email string) (user *internal_user.UserAccount, err error)
- func (ui *UserInteractor) Save(user *internal_user.UserAccount) (result *sql.Result, err error)
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserInteractor ¶
type UserInteractor struct {
UserRepository UserRepository
}
A UserInteractor belong to the usecases layer.
func NewUserInteractor ¶
func NewUserInteractor(ur UserRepository) *UserInteractor
func (*UserInteractor) Change ¶
func (ui *UserInteractor) Change(user *internal_user.UserAccount, email string) (result *sql.Result, err error)
func (*UserInteractor) ChangePassword ¶
func (ui *UserInteractor) ChangePassword(ua *internal_user.UserAccount, newP string) (result *sql.Result, err error)
func (*UserInteractor) ChangePlan ¶
func (ui *UserInteractor) ChangePlan(userAccount *internal_user.UserAccount) (result *sql.Result, err error)
func (*UserInteractor) Destroy ¶
func (ui *UserInteractor) Destroy(userAccount *internal_user.UserAccount) (result *sql.Result, err error)
func (*UserInteractor) IndexUser ¶
func (userInteractor *UserInteractor) IndexUser(email string) (user *internal_user.UserAccount, err error)
func (*UserInteractor) IndexUserAndPlan ¶
func (userInteractor *UserInteractor) IndexUserAndPlan(email string) (user *internal_user.UserAccount, err error)
func (*UserInteractor) Save ¶
func (ui *UserInteractor) Save(user *internal_user.UserAccount) (result *sql.Result, err error)
type UserRepository ¶
type UserRepository interface { SelectUser(email string) (*internal_user.UserAccount, error) SelectUserAndPlan(string) (*internal_user.UserAccount, error) AddUser(*internal_user.UserAccount) (*sql.Result, error) UpdateUser(*internal_user.UserAccount, string) (*sql.Result, error) NewPlan(*internal_user.UserAccount) (*sql.Result, error) NewPassword(*internal_user.UserAccount, string) (*sql.Result, error) DeleteUser(*internal_user.UserAccount) (*sql.Result, error) }
A UserRepository belong to the usecases layer.
Click to show internal directories.
Click to hide internal directories.