account

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 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 Account

type Account struct {
}

func (*Account) CheckCreateAccountErrorType

func (a *Account) CheckCreateAccountErrorType(err error) error

func (*Account) GenerateResetPasswordCode

func (a *Account) GenerateResetPasswordCode() string

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 (a *Account) ValidateEmail(email string) error

func (*Account) ValidateLogin

func (a *Account) ValidateLogin(account *accountEntities.Account, loginData *accountEntities.LoginData) error

func (*Account) ValidateResetPasswordCode

func (a *Account) ValidateResetPasswordCode(validCode []byte, informedCode string) 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

Jump to

Keyboard shortcuts

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