Documentation ¶
Index ¶
- type Controller
- func (c *Controller) ChangePassword(data *accountEntities.ChangePasswordData) error
- func (c *Controller) CheckExistingEmailOrUsername(data *accountEntities.CheckEmailAndUsername) error
- func (c *Controller) CheckResetPasswordCode(data *accountEntities.ResetCodeData) (string, error)
- func (c *Controller) CreateAccountHorusec(data *accountEntities.Data) (*accountEntities.Response, error)
- func (c *Controller) CreateAccountKeycloak(token string) (*accountEntities.Response, error)
- func (c *Controller) DeleteAccount(accountID uuid.UUID) error
- func (c *Controller) GetAccountID(token string) (uuid.UUID, error)
- func (c *Controller) Logout(refreshToken string)
- func (c *Controller) RefreshToken(refreshToken string) (*authEntities.LoginResponse, error)
- func (c *Controller) SendResetPasswordCode(email string) error
- func (c *Controller) UpdateAccount(data *accountEntities.UpdateAccount) (*accountEntities.Response, error)
- func (c *Controller) ValidateAccountEmail(accountID uuid.UUID) error
- type IController
- type Mock
- func (m *Mock) ChangePassword(_ *accountEntities.ChangePasswordData) error
- func (m *Mock) CheckExistingEmailOrUsername(_ *accountEntities.CheckEmailAndUsername) error
- func (m *Mock) CheckResetPasswordCode(_ *accountEntities.ResetCodeData) (string, error)
- func (m *Mock) CreateAccountHorusec(_ *accountEntities.Data) (*accountEntities.Response, error)
- func (m *Mock) CreateAccountKeycloak(_ string) (*accountEntities.Response, error)
- func (m *Mock) DeleteAccount(_ uuid.UUID) error
- func (m *Mock) GetAccountID(_ string) (uuid.UUID, error)
- func (m *Mock) Logout(_ string)
- func (m *Mock) RefreshToken(_ string) (*authEntities.LoginResponse, error)
- func (m *Mock) SendResetPasswordCode(_ string) error
- func (m *Mock) UpdateAccount(_ *accountEntities.UpdateAccount) (*accountEntities.Response, error)
- func (m *Mock) ValidateAccountEmail(_ uuid.UUID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) ChangePassword ¶
func (c *Controller) ChangePassword(data *accountEntities.ChangePasswordData) error
func (*Controller) CheckExistingEmailOrUsername ¶
func (c *Controller) CheckExistingEmailOrUsername(data *accountEntities.CheckEmailAndUsername) error
func (*Controller) CheckResetPasswordCode ¶
func (c *Controller) CheckResetPasswordCode(data *accountEntities.ResetCodeData) (string, error)
func (*Controller) CreateAccountHorusec ¶
func (c *Controller) CreateAccountHorusec(data *accountEntities.Data) (*accountEntities.Response, error)
func (*Controller) CreateAccountKeycloak ¶
func (c *Controller) CreateAccountKeycloak(token string) (*accountEntities.Response, error)
func (*Controller) DeleteAccount ¶
func (c *Controller) DeleteAccount(accountID uuid.UUID) error
func (*Controller) GetAccountID ¶
func (c *Controller) GetAccountID(token string) (uuid.UUID, error)
func (*Controller) Logout ¶
func (c *Controller) Logout(refreshToken string)
func (*Controller) RefreshToken ¶
func (c *Controller) RefreshToken(refreshToken string) (*authEntities.LoginResponse, error)
func (*Controller) SendResetPasswordCode ¶
func (c *Controller) SendResetPasswordCode(email string) error
func (*Controller) UpdateAccount ¶
func (c *Controller) UpdateAccount(data *accountEntities.UpdateAccount) (*accountEntities.Response, error)
func (*Controller) ValidateAccountEmail ¶
func (c *Controller) ValidateAccountEmail(accountID uuid.UUID) error
type IController ¶
type IController interface { CreateAccountKeycloak(token string) (*accountEntities.Response, error) CreateAccountHorusec(data *accountEntities.Data) (*accountEntities.Response, error) ValidateAccountEmail(accountID uuid.UUID) error SendResetPasswordCode(email string) error CheckResetPasswordCode(data *accountEntities.ResetCodeData) (string, error) ChangePassword(data *accountEntities.ChangePasswordData) error RefreshToken(refreshToken string) (*authEntities.LoginResponse, error) Logout(refreshToken string) CheckExistingEmailOrUsername(data *accountEntities.CheckEmailAndUsername) error DeleteAccount(accountID uuid.UUID) error GetAccountID(token string) (uuid.UUID, error) UpdateAccount(data *accountEntities.UpdateAccount) (*accountEntities.Response, error) }
func NewAccountController ¶
func NewAccountController(repositoryAccount accountRepository.IRepository, keycloakAuth keycloak.IService, useCasesAccount accountUseCases.IUseCases, appConfig app.IConfig, brokerLib broker.IBroker, cacheLib cache.ICache) IController
type Mock ¶
func (*Mock) ChangePassword ¶
func (m *Mock) ChangePassword(_ *accountEntities.ChangePasswordData) error
func (*Mock) CheckExistingEmailOrUsername ¶
func (m *Mock) CheckExistingEmailOrUsername(_ *accountEntities.CheckEmailAndUsername) error
func (*Mock) CheckResetPasswordCode ¶
func (m *Mock) CheckResetPasswordCode(_ *accountEntities.ResetCodeData) (string, error)
func (*Mock) CreateAccountHorusec ¶
func (m *Mock) CreateAccountHorusec(_ *accountEntities.Data) (*accountEntities.Response, error)
func (*Mock) CreateAccountKeycloak ¶
func (m *Mock) CreateAccountKeycloak(_ string) (*accountEntities.Response, error)
func (*Mock) RefreshToken ¶
func (m *Mock) RefreshToken(_ string) (*authEntities.LoginResponse, error)
func (*Mock) SendResetPasswordCode ¶
func (*Mock) UpdateAccount ¶
func (m *Mock) UpdateAccount(_ *accountEntities.UpdateAccount) (*accountEntities.Response, error)
Click to show internal directories.
Click to hide internal directories.