Documentation ¶
Index ¶
- type Core
- func (c *Core) CountUserAccountCategorySumsByTimeRange(userUUID, accountUUID uuid.UUID, from, to time.Time) ([]*models.CategorySum, error)
- func (c *Core) CreateAccount(userUUID uuid.UUID, name string, currency iso4217.Currency) (*models.Account, error)
- func (c *Core) CreateTransaction(userUUID, accountUUID uuid.UUID, t time.Time, amount float64, ...) (*models.Transaction, error)
- func (c Core) CreateUser() (*models.User, error)
- func (c *Core) DeleteAccount(userUUID, accountUUID uuid.UUID) error
- func (c *Core) DeleteTransaction(userUUID, accountUUID, transactionUUID uuid.UUID) error
- func (c Core) DeleteUser(userUUID uuid.UUID) error
- func (c *Core) GetUserAccountStatsByTimeRange(userUUID, accountUUID uuid.UUID, from, to time.Time) (*models.StatsTimeRange, error)
- func (c *Core) GetUserAccountStatsByTimeRangeCategories(userUUID, accountUUID uuid.UUID, from, to time.Time, categories []string) (*models.StatsTimeRangeCategories, error)
- func (c *Core) GetUserAccountTransaction(userUUID, accountUUID, transactionUUID uuid.UUID) (*models.Transaction, error)
- func (c *Core) GetUserAccountTransactionsByTimeRange(userUUID, accountUUID uuid.UUID, from, to time.Time) ([]*models.Transaction, error)
- func (c *Core) GetUserAccountTransactionsByTimeRangeCategories(userUUID, accountUUID uuid.UUID, from, to time.Time, categories []string) ([]*models.Transaction, error)
- func (c *Core) GetUserAccounts(userUUID uuid.UUID) ([]*models.Account, error)
- func (c *Core) UpdateAccount(userUUID, accountUUID uuid.UUID, name string, currency iso4217.Currency) (*models.Account, error)
- func (c *Core) UpdateTransaction(userUUID, accountUUID, transactionUUID uuid.UUID, t time.Time, amount float64, ...) (*models.Transaction, error)
- func (c Core) UpdateUser(userUUID uuid.UUID) (*models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
func New ¶
func New(userRepository repository.UserRepository, accountRepository repository.AccountRepository, transactionRepository repository.TransactionRepository) *Core
func (*Core) CountUserAccountCategorySumsByTimeRange ¶
func (*Core) CreateAccount ¶
func (*Core) CreateTransaction ¶
func (*Core) DeleteAccount ¶
func (*Core) DeleteTransaction ¶
func (Core) DeleteUser ¶
func (*Core) GetUserAccountStatsByTimeRange ¶
func (*Core) GetUserAccountStatsByTimeRangeCategories ¶
func (*Core) GetUserAccountTransaction ¶
func (c *Core) GetUserAccountTransaction(userUUID, accountUUID, transactionUUID uuid.UUID) (*models.Transaction, error)
func (*Core) GetUserAccountTransactionsByTimeRange ¶
func (*Core) GetUserAccountTransactionsByTimeRangeCategories ¶
func (*Core) GetUserAccounts ¶
func (*Core) UpdateAccount ¶
func (*Core) UpdateTransaction ¶
Click to show internal directories.
Click to hide internal directories.