account

package
v0.0.0-...-46e61fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func NewAccountUseCases(appConfig app.IConfig) IUseCases

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 (u *UseCases) CheckCreateAccountErrors(err error) error

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 (u *UseCases) FilterAccountByEmail(email string) map[string]interface{}

func (*UseCases) FilterAccountByID

func (u *UseCases) FilterAccountByID(accountID uuid.UUID) map[string]interface{}

func (*UseCases) FilterAccountByUsername

func (u *UseCases) FilterAccountByUsername(username string) map[string]interface{}

func (*UseCases) GenerateResetPasswordCode

func (u *UseCases) GenerateResetPasswordCode() string

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL