Documentation ¶
Index ¶
- type IUseCases
- type UseCases
- func (u *UseCases) AccessTokenFromIOReadCloser(body io.ReadCloser) (*accountEntities.AccessToken, error)
- func (u *UseCases) AccountDataFromIOReadCloser(body io.ReadCloser) (*accountEntities.Data, error)
- func (u *UseCases) ChangePasswordDataFromIOReadCloser(body io.ReadCloser) (*accountEntities.ChangePasswordData, error)
- func (u *UseCases) CheckCreateAccountErrors(err error) error
- func (u *UseCases) CheckEmailAndUsernameFromIOReadCloser(body io.ReadCloser) (*accountEntities.CheckEmailAndUsername, error)
- func (u *UseCases) EmailFromIOReadCloser(body io.ReadCloser) (*accountEntities.Email, error)
- func (u *UseCases) FilterAccountByEmail(email string) map[string]interface{}
- func (u *UseCases) FilterAccountByID(accountID uuid.UUID) map[string]interface{}
- func (u *UseCases) FilterAccountByUsername(username string) map[string]interface{}
- func (u *UseCases) GenerateResetPasswordCode() string
- func (u *UseCases) NewAccountFromKeycloakUserInfo(userInfo *gocloak.UserInfo) *accountEntities.Account
- func (u *UseCases) NewAccountValidationEmail(account *accountEntities.Account) []byte
- func (u *UseCases) NewResetPasswordCodeEmail(account *accountEntities.Account, code string) []byte
- func (u *UseCases) RefreshTokenFromIOReadCloser(body io.ReadCloser) (*accountEntities.RefreshToken, error)
- func (u *UseCases) ResetCodeDataFromIOReadCloser(body io.ReadCloser) (*accountEntities.ResetCodeData, error)
- func (u *UseCases) UpdateAccountFromIOReadCloser(body io.ReadCloser) (*accountEntities.UpdateAccount, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IUseCases ¶
type IUseCases interface { FilterAccountByID(accountID uuid.UUID) map[string]interface{} FilterAccountByEmail(email string) map[string]interface{} FilterAccountByUsername(username string) map[string]interface{} NewAccountFromKeycloakUserInfo(userInfo *gocloak.UserInfo) *accountEntities.Account CheckCreateAccountErrors(err error) error AccessTokenFromIOReadCloser(body io.ReadCloser) (*accountEntities.AccessToken, error) AccountDataFromIOReadCloser(body io.ReadCloser) (*accountEntities.Data, error) NewAccountValidationEmail(account *accountEntities.Account) []byte EmailFromIOReadCloser(body io.ReadCloser) (*accountEntities.Email, error) GenerateResetPasswordCode() string NewResetPasswordCodeEmail(account *accountEntities.Account, code string) []byte ResetCodeDataFromIOReadCloser(body io.ReadCloser) (*accountEntities.ResetCodeData, error) ChangePasswordDataFromIOReadCloser(body io.ReadCloser) (*accountEntities.ChangePasswordData, error) RefreshTokenFromIOReadCloser(body io.ReadCloser) (*accountEntities.RefreshToken, error) CheckEmailAndUsernameFromIOReadCloser(body io.ReadCloser) (*accountEntities.CheckEmailAndUsername, error) UpdateAccountFromIOReadCloser(body io.ReadCloser) (*accountEntities.UpdateAccount, error) }
func NewAccountUseCases ¶
type UseCases ¶
type UseCases struct {
// contains filtered or unexported fields
}
func (*UseCases) AccessTokenFromIOReadCloser ¶
func (u *UseCases) AccessTokenFromIOReadCloser(body io.ReadCloser) (*accountEntities.AccessToken, error)
func (*UseCases) AccountDataFromIOReadCloser ¶
func (u *UseCases) AccountDataFromIOReadCloser(body io.ReadCloser) (*accountEntities.Data, error)
func (*UseCases) ChangePasswordDataFromIOReadCloser ¶
func (u *UseCases) ChangePasswordDataFromIOReadCloser(body io.ReadCloser) (*accountEntities.ChangePasswordData, error)
func (*UseCases) CheckCreateAccountErrors ¶
func (*UseCases) CheckEmailAndUsernameFromIOReadCloser ¶
func (u *UseCases) CheckEmailAndUsernameFromIOReadCloser( body io.ReadCloser) (*accountEntities.CheckEmailAndUsername, error)
func (*UseCases) EmailFromIOReadCloser ¶
func (u *UseCases) EmailFromIOReadCloser(body io.ReadCloser) (*accountEntities.Email, error)
func (*UseCases) FilterAccountByEmail ¶
func (*UseCases) FilterAccountByID ¶
func (*UseCases) FilterAccountByUsername ¶
func (*UseCases) GenerateResetPasswordCode ¶
func (*UseCases) NewAccountFromKeycloakUserInfo ¶
func (u *UseCases) NewAccountFromKeycloakUserInfo(userInfo *gocloak.UserInfo) *accountEntities.Account
func (*UseCases) NewAccountValidationEmail ¶
func (u *UseCases) NewAccountValidationEmail(account *accountEntities.Account) []byte
func (*UseCases) NewResetPasswordCodeEmail ¶
func (u *UseCases) NewResetPasswordCodeEmail(account *accountEntities.Account, code string) []byte
func (*UseCases) RefreshTokenFromIOReadCloser ¶
func (u *UseCases) RefreshTokenFromIOReadCloser(body io.ReadCloser) (*accountEntities.RefreshToken, error)
func (*UseCases) ResetCodeDataFromIOReadCloser ¶
func (u *UseCases) ResetCodeDataFromIOReadCloser(body io.ReadCloser) (*accountEntities.ResetCodeData, error)
func (*UseCases) UpdateAccountFromIOReadCloser ¶
func (u *UseCases) UpdateAccountFromIOReadCloser(body io.ReadCloser) (*accountEntities.UpdateAccount, error)
Click to show internal directories.
Click to hide internal directories.