Documentation ¶
Index ¶
- type Account
- func (a *Account) Create(account *accountEntities.Account) error
- func (a *Account) DeleteAccount(accountID uuid.UUID) error
- func (a *Account) GetByAccountID(accountID uuid.UUID) (*accountEntities.Account, error)
- func (a *Account) GetByEmail(email string) (*accountEntities.Account, error)
- func (a *Account) GetByUsername(username string) (*accountEntities.Account, error)
- func (a *Account) Update(account *accountEntities.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) (*accountEntities.Account, error)
func (*Account) GetByUsername ¶ added in v1.0.1
func (a *Account) GetByUsername(username string) (*accountEntities.Account, error)
type IAccount ¶
type IAccount interface { Create(account *accountEntities.Account) error GetByAccountID(accountID uuid.UUID) (*accountEntities.Account, error) GetByEmail(email string) (*accountEntities.Account, error) Update(account *accountEntities.Account) error GetByUsername(username string) (*accountEntities.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.