Documentation
¶
Index ¶
- type SQLAccountsRepository
- func (a *SQLAccountsRepository) AddNewAccount(account *models.Account) error
- func (a *SQLAccountsRepository) DeleteAccount(userID int64, shortName string) error
- func (a *SQLAccountsRepository) GetAccountByShortName(userID int64, shortName string) (*models.Account, error)
- func (a *SQLAccountsRepository) ListAccounts(userID int64) ([]models.Account, error)
- func (a *SQLAccountsRepository) ListAccountsByType(userID int64, typ models.AccountType) ([]models.Account, error)
- func (a *SQLAccountsRepository) UpdateAccountBalance(userID int64, shortName string, txnAmount float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLAccountsRepository ¶
type SQLAccountsRepository struct {
// contains filtered or unexported fields
}
func NewSQLAccountsRepository ¶
func NewSQLAccountsRepository(db isql.Database, logger logr.Logger) *SQLAccountsRepository
func (*SQLAccountsRepository) AddNewAccount ¶
func (a *SQLAccountsRepository) AddNewAccount(account *models.Account) error
func (*SQLAccountsRepository) DeleteAccount ¶
func (a *SQLAccountsRepository) DeleteAccount(userID int64, shortName string) error
func (*SQLAccountsRepository) GetAccountByShortName ¶ added in v1.0.3
func (*SQLAccountsRepository) ListAccounts ¶
func (a *SQLAccountsRepository) ListAccounts(userID int64) ([]models.Account, error)
func (*SQLAccountsRepository) ListAccountsByType ¶
func (a *SQLAccountsRepository) ListAccountsByType(userID int64, typ models.AccountType) ([]models.Account, error)
func (*SQLAccountsRepository) UpdateAccountBalance ¶
func (a *SQLAccountsRepository) UpdateAccountBalance(userID int64, shortName string, txnAmount float64) error
Click to show internal directories.
Click to hide internal directories.