account

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 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 *accountEntities.Account) error

func (*Account) GetByAccountID

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

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)

func (*Account) Update

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

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