Documentation
¶
Index ¶
- func NewSqlite3DB(cfg Config) (*sqlx.DB, error)
- type Account
- func (r *Account) CreateAccount(account domain.Account) error
- func (r *Account) DeleteAccount(accountPublicId string) error
- func (r *Account) GetAccount(publicId string) (domain.Account, error)
- func (r *Account) GetByCredentials(email, password string) (domain.Account, error)
- func (r *Account) UpdateAccountInfo(input domain.UpdateAccountInput) error
- func (r *Account) UpdateAccountRole(input domain.UpdateAccountRoleInput) error
- type Accounter
- type Config
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
Account
func (*Account) CreateAccount ¶
CreateAccount
func (*Account) DeleteAccount ¶
DeleteAccount
func (*Account) GetAccount ¶
GetAccount
func (*Account) GetByCredentials ¶
GetByCredentials
func (*Account) UpdateAccountInfo ¶
func (r *Account) UpdateAccountInfo(input domain.UpdateAccountInput) error
UpdateAccountInfo
func (*Account) UpdateAccountRole ¶
func (r *Account) UpdateAccountRole(input domain.UpdateAccountRoleInput) error
UpdateAccountRole
type Accounter ¶
type Accounter interface { CreateAccount(account domain.Account) error GetAccount(publicId string) (domain.Account, error) UpdateAccountInfo(input domain.UpdateAccountInput) error UpdateAccountRole(input domain.UpdateAccountRoleInput) error DeleteAccount(accountPublicId string) error GetByCredentials(email, password string) (domain.Account, error) }
Accounter - repository interface
Click to show internal directories.
Click to hide internal directories.