account

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 3 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 {
	// contains filtered or unexported fields
}

func (*Account) Create

func (a *Account) Create(account *authEntities.Account) error

func (*Account) DeleteAccount added in v1.2.0

func (a *Account) DeleteAccount(accountID uuid.UUID) error

func (*Account) GetByAccountID

func (a *Account) GetByAccountID(accountID uuid.UUID) (*authEntities.Account, error)

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) Update

func (a *Account) Update(account *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

Jump to

Keyboard shortcuts

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