Documentation ¶
Index ¶
- type Account
- func (a *Account) Create(account *authEntities.Account) error
- func (a *Account) DeleteAccount(accountID uuid.UUID) error
- func (a *Account) GetByAccountID(accountID uuid.UUID) (*authEntities.Account, error)
- func (a *Account) GetByEmail(email string) (*authEntities.Account, error)
- func (a *Account) GetByUsername(username string) (*authEntities.Account, error)
- func (a *Account) Update(account *authEntities.Account) error
- func (a *Account) UpdatePassword(account *authEntities.Account) error
- type IAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func (*Account) DeleteAccount ¶ added in v1.2.0
func (*Account) GetByAccountID ¶
func (*Account) GetByEmail ¶
func (a *Account) GetByEmail(email string) (*authEntities.Account, error)
func (*Account) GetByUsername ¶ added in v1.0.1
func (a *Account) GetByUsername(username string) (*authEntities.Account, error)
func (*Account) UpdatePassword ¶ added in v1.4.0
func (a *Account) UpdatePassword(account *authEntities.Account) error
type IAccount ¶
type IAccount interface { Create(account *authEntities.Account) error GetByAccountID(accountID uuid.UUID) (*authEntities.Account, error) GetByEmail(email string) (*authEntities.Account, error) Update(account *authEntities.Account) error UpdatePassword(account *authEntities.Account) error GetByUsername(username string) (*authEntities.Account, error) DeleteAccount(accountID uuid.UUID) error }
func NewAccountRepository ¶
func NewAccountRepository(databaseRead SQL.InterfaceRead, databaseWrite SQL.InterfaceWrite) IAccount
Click to show internal directories.
Click to hide internal directories.