Documentation ¶
Index ¶
- type Account
- func (a *Account) CheckCreateAccountErrorType(err error) error
- func (a *Account) GenerateResetPasswordCode() string
- func (a *Account) MapRepositoriesRoles(accountRepositories *[]roles.AccountRepository) map[string]string
- func (a *Account) NewAccountFromKeyCloakUserInfo(userInfo *gocloak.UserInfo) *accountEntities.Account
- func (a *Account) NewAccountFromReadCloser(body io.ReadCloser) (*accountEntities.Account, error)
- func (a *Account) NewEmailDataFromReadCloser(body io.ReadCloser) (data *accountEntities.EmailData, err error)
- func (a *Account) NewKeycloakTokenFromReadCloser(body io.ReadCloser) (*accountEntities.KeycloakToken, error)
- func (a *Account) NewLoginFromReadCloser(body io.ReadCloser) (loginData *accountEntities.LoginData, err error)
- func (a *Account) NewPasswordFromReadCloser(body io.ReadCloser) (password string, err error)
- func (a *Account) NewRefreshTokenFromReadCloser(body io.ReadCloser) (token string, err error)
- func (a *Account) NewResetCodeDataFromReadCloser(body io.ReadCloser) (data *accountEntities.ResetCodeData, err error)
- func (a *Account) NewValidateUniqueFromReadCloser(body io.ReadCloser) (validateUnique *accountEntities.ValidateUnique, err error)
- func (a *Account) ValidateEmail(email string) error
- func (a *Account) ValidateLogin(account *accountEntities.Account, loginData *accountEntities.LoginData) error
- func (a *Account) ValidateResetPasswordCode(validCode []byte, informedCode 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 { }
func (*Account) CheckCreateAccountErrorType ¶
func (*Account) GenerateResetPasswordCode ¶
func (*Account) MapRepositoriesRoles ¶
func (a *Account) MapRepositoriesRoles(accountRepositories *[]roles.AccountRepository) map[string]string
func (*Account) NewAccountFromKeyCloakUserInfo ¶ added in v1.2.0
func (a *Account) NewAccountFromKeyCloakUserInfo(userInfo *gocloak.UserInfo) *accountEntities.Account
func (*Account) NewAccountFromReadCloser ¶
func (a *Account) NewAccountFromReadCloser(body io.ReadCloser) (*accountEntities.Account, error)
func (*Account) NewEmailDataFromReadCloser ¶
func (a *Account) NewEmailDataFromReadCloser(body io.ReadCloser) (data *accountEntities.EmailData, err error)
func (*Account) NewKeycloakTokenFromReadCloser ¶ added in v1.2.0
func (a *Account) NewKeycloakTokenFromReadCloser(body io.ReadCloser) (*accountEntities.KeycloakToken, error)
func (*Account) NewLoginFromReadCloser ¶
func (a *Account) NewLoginFromReadCloser(body io.ReadCloser) (loginData *accountEntities.LoginData, err error)
func (*Account) NewPasswordFromReadCloser ¶
func (a *Account) NewPasswordFromReadCloser(body io.ReadCloser) (password string, err error)
func (*Account) NewRefreshTokenFromReadCloser ¶
func (a *Account) NewRefreshTokenFromReadCloser(body io.ReadCloser) (token string, err error)
func (*Account) NewResetCodeDataFromReadCloser ¶
func (a *Account) NewResetCodeDataFromReadCloser(body io.ReadCloser) (data *accountEntities.ResetCodeData, err error)
func (*Account) NewValidateUniqueFromReadCloser ¶ added in v1.0.1
func (a *Account) NewValidateUniqueFromReadCloser( body io.ReadCloser) (validateUnique *accountEntities.ValidateUnique, err error)
func (*Account) ValidateEmail ¶
func (*Account) ValidateLogin ¶
func (a *Account) ValidateLogin(account *accountEntities.Account, loginData *accountEntities.LoginData) error
type IAccount ¶
type IAccount interface { NewAccountFromReadCloser(body io.ReadCloser) (account *accountEntities.Account, err error) NewLoginFromReadCloser(body io.ReadCloser) (loginData *accountEntities.LoginData, err error) ValidateLogin(account *accountEntities.Account, loginData *accountEntities.LoginData) error CheckCreateAccountErrorType(err error) error GenerateResetPasswordCode() string ValidateEmail(email string) error ValidateResetPasswordCode(validCode []byte, informedCode string) error NewResetCodeDataFromReadCloser(body io.ReadCloser) (data *accountEntities.ResetCodeData, err error) NewPasswordFromReadCloser(body io.ReadCloser) (password string, err error) NewEmailDataFromReadCloser(body io.ReadCloser) (data *accountEntities.EmailData, err error) MapRepositoriesRoles(accountRepositories *[]roles.AccountRepository) map[string]string NewRefreshTokenFromReadCloser(body io.ReadCloser) (token string, err error) NewValidateUniqueFromReadCloser(body io.ReadCloser) (validateUnique *accountEntities.ValidateUnique, err error) NewKeycloakTokenFromReadCloser(body io.ReadCloser) (*accountEntities.KeycloakToken, error) NewAccountFromKeyCloakUserInfo(userInfo *gocloak.UserInfo) *accountEntities.Account }
func NewAccountUseCases ¶
func NewAccountUseCases() IAccount
Click to show internal directories.
Click to hide internal directories.