Documentation
¶
Index ¶
- type Account
- func (a *Account) ChangePassword(accountID uuid.UUID, password string) error
- func (a *Account) CreateAccount(account *accountEntities.Account) error
- func (a *Account) Login(loginData *accountEntities.LoginData) (*accountEntities.LoginResponse, error)
- func (a *Account) Logout(accountID uuid.UUID) error
- func (a *Account) RenewToken(refreshToken, accessToken string) (*accountEntities.LoginResponse, error)
- func (a *Account) SendResetPasswordCode(email string) error
- func (a *Account) ValidateEmail(accountID uuid.UUID) error
- func (a *Account) VerifyResetPasswordCode(data *accountEntities.ResetCodeData) (string, error)
- type IAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func (*Account) ChangePassword ¶
func (*Account) CreateAccount ¶
func (a *Account) CreateAccount(account *accountEntities.Account) error
func (*Account) Login ¶
func (a *Account) Login(loginData *accountEntities.LoginData) (*accountEntities.LoginResponse, error)
func (*Account) RenewToken ¶
func (a *Account) RenewToken(refreshToken, accessToken string) (*accountEntities.LoginResponse, error)
func (*Account) SendResetPasswordCode ¶
func (*Account) VerifyResetPasswordCode ¶
func (a *Account) VerifyResetPasswordCode(data *accountEntities.ResetCodeData) (string, error)
type IAccount ¶
type IAccount interface { CreateAccount(account *accountEntities.Account) error Login(loginData *accountEntities.LoginData) (*accountEntities.LoginResponse, error) ValidateEmail(accountID uuid.UUID) error SendResetPasswordCode(email string) error VerifyResetPasswordCode(data *accountEntities.ResetCodeData) (string, error) ChangePassword(accountID uuid.UUID, password string) error RenewToken(refreshToken, accessToken string) (*accountEntities.LoginResponse, error) Logout(accountID uuid.UUID) error // contains filtered or unexported methods }
func NewAccountController ¶
func NewAccountController(broker brokerLib.IBroker, databaseRead SQL.InterfaceRead, databaseWrite SQL.InterfaceWrite, cacheRepository cache.Interface, useCases accountUseCases.IAccount, appConfig app.IAppConfig) IAccount
Click to show internal directories.
Click to hide internal directories.