Documentation ¶
Index ¶
- func NewExpenseCategoryRepository() category.Repository
- func NewExpenseRepository() expense.Repository
- func NewMoneyAccountRepository() moneyaccount.Repository
- func NewPaymentRepository() payment.Repository
- func NewTransactionRepository() transaction.Repository
- type GormExpenseCategoryRepository
- func (g *GormExpenseCategoryRepository) Count(ctx context.Context) (uint, error)
- func (g *GormExpenseCategoryRepository) Create(ctx context.Context, data *category.ExpenseCategory) error
- func (g *GormExpenseCategoryRepository) Delete(ctx context.Context, id uint) error
- func (g *GormExpenseCategoryRepository) GetAll(ctx context.Context) ([]*category.ExpenseCategory, error)
- func (g *GormExpenseCategoryRepository) GetByID(ctx context.Context, id uint) (*category.ExpenseCategory, error)
- func (g *GormExpenseCategoryRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*category.ExpenseCategory, error)
- func (g *GormExpenseCategoryRepository) Update(ctx context.Context, data *category.ExpenseCategory) error
- type GormExpenseRepository
- func (g *GormExpenseRepository) Count(ctx context.Context) (uint, error)
- func (g *GormExpenseRepository) Create(ctx context.Context, data *expense.Expense) error
- func (g *GormExpenseRepository) Delete(ctx context.Context, id uint) error
- func (g *GormExpenseRepository) GetAll(ctx context.Context) ([]*expense.Expense, error)
- func (g *GormExpenseRepository) GetByID(ctx context.Context, id uint) (*expense.Expense, error)
- func (g *GormExpenseRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*expense.Expense, error)
- func (g *GormExpenseRepository) Update(ctx context.Context, data *expense.Expense) error
- type GormMoneyAccountRepository
- func (g *GormMoneyAccountRepository) Count(ctx context.Context) (uint, error)
- func (g *GormMoneyAccountRepository) Create(ctx context.Context, data *moneyaccount.Account) error
- func (g *GormMoneyAccountRepository) Delete(ctx context.Context, id uint) error
- func (g *GormMoneyAccountRepository) GetAll(ctx context.Context) ([]*moneyaccount.Account, error)
- func (g *GormMoneyAccountRepository) GetByID(ctx context.Context, id uint) (*moneyaccount.Account, error)
- func (g *GormMoneyAccountRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*moneyaccount.Account, error)
- func (g *GormMoneyAccountRepository) RecalculateBalance(ctx context.Context, id uint) error
- func (g *GormMoneyAccountRepository) Update(ctx context.Context, data *moneyaccount.Account) error
- type GormPaymentRepository
- func (g *GormPaymentRepository) Count(ctx context.Context) (uint, error)
- func (g *GormPaymentRepository) Create(ctx context.Context, data *payment.Payment) error
- func (g *GormPaymentRepository) Delete(ctx context.Context, id uint) error
- func (g *GormPaymentRepository) GetAll(ctx context.Context) ([]*payment.Payment, error)
- func (g *GormPaymentRepository) GetByID(ctx context.Context, id uint) (*payment.Payment, error)
- func (g *GormPaymentRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*payment.Payment, error)
- func (g *GormPaymentRepository) Update(ctx context.Context, data *payment.Payment) error
- type GormTransactionRepository
- func (g *GormTransactionRepository) Count(ctx context.Context) (int64, error)
- func (g *GormTransactionRepository) Create(ctx context.Context, data *transaction.Transaction) error
- func (g *GormTransactionRepository) Delete(ctx context.Context, id int64) error
- func (g *GormTransactionRepository) GetAll(ctx context.Context) ([]*transaction.Transaction, error)
- func (g *GormTransactionRepository) GetByID(ctx context.Context, id int64) (*transaction.Transaction, error)
- func (g *GormTransactionRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*transaction.Transaction, error)
- func (g *GormTransactionRepository) Update(ctx context.Context, data *transaction.Transaction) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExpenseCategoryRepository ¶
func NewExpenseCategoryRepository() category.Repository
func NewExpenseRepository ¶
func NewExpenseRepository() expense.Repository
func NewMoneyAccountRepository ¶
func NewMoneyAccountRepository() moneyaccount.Repository
func NewPaymentRepository ¶
func NewPaymentRepository() payment.Repository
func NewTransactionRepository ¶
func NewTransactionRepository() transaction.Repository
Types ¶
type GormExpenseCategoryRepository ¶
type GormExpenseCategoryRepository struct{}
func (*GormExpenseCategoryRepository) Count ¶
func (g *GormExpenseCategoryRepository) Count(ctx context.Context) (uint, error)
func (*GormExpenseCategoryRepository) Create ¶
func (g *GormExpenseCategoryRepository) Create(ctx context.Context, data *category.ExpenseCategory) error
func (*GormExpenseCategoryRepository) Delete ¶
func (g *GormExpenseCategoryRepository) Delete(ctx context.Context, id uint) error
func (*GormExpenseCategoryRepository) GetAll ¶
func (g *GormExpenseCategoryRepository) GetAll(ctx context.Context) ([]*category.ExpenseCategory, error)
func (*GormExpenseCategoryRepository) GetByID ¶
func (g *GormExpenseCategoryRepository) GetByID(ctx context.Context, id uint) (*category.ExpenseCategory, error)
func (*GormExpenseCategoryRepository) GetPaginated ¶
func (g *GormExpenseCategoryRepository) GetPaginated( ctx context.Context, limit, offset int, sortBy []string, ) ([]*category.ExpenseCategory, error)
func (*GormExpenseCategoryRepository) Update ¶
func (g *GormExpenseCategoryRepository) Update(ctx context.Context, data *category.ExpenseCategory) error
type GormExpenseRepository ¶
type GormExpenseRepository struct{}
func (*GormExpenseRepository) Count ¶
func (g *GormExpenseRepository) Count(ctx context.Context) (uint, error)
func (*GormExpenseRepository) Delete ¶
func (g *GormExpenseRepository) Delete(ctx context.Context, id uint) error
func (*GormExpenseRepository) GetPaginated ¶
type GormMoneyAccountRepository ¶
type GormMoneyAccountRepository struct{}
func (*GormMoneyAccountRepository) Count ¶
func (g *GormMoneyAccountRepository) Count(ctx context.Context) (uint, error)
func (*GormMoneyAccountRepository) Create ¶
func (g *GormMoneyAccountRepository) Create(ctx context.Context, data *moneyaccount.Account) error
func (*GormMoneyAccountRepository) Delete ¶
func (g *GormMoneyAccountRepository) Delete(ctx context.Context, id uint) error
func (*GormMoneyAccountRepository) GetAll ¶
func (g *GormMoneyAccountRepository) GetAll(ctx context.Context) ([]*moneyaccount.Account, error)
func (*GormMoneyAccountRepository) GetByID ¶
func (g *GormMoneyAccountRepository) GetByID(ctx context.Context, id uint) (*moneyaccount.Account, error)
func (*GormMoneyAccountRepository) GetPaginated ¶
func (*GormMoneyAccountRepository) RecalculateBalance ¶
func (g *GormMoneyAccountRepository) RecalculateBalance(ctx context.Context, id uint) error
type GormPaymentRepository ¶
type GormPaymentRepository struct{}
func (*GormPaymentRepository) Count ¶
func (g *GormPaymentRepository) Count(ctx context.Context) (uint, error)
func (*GormPaymentRepository) Delete ¶
func (g *GormPaymentRepository) Delete(ctx context.Context, id uint) error
func (*GormPaymentRepository) GetPaginated ¶
type GormTransactionRepository ¶
type GormTransactionRepository struct{}
func (*GormTransactionRepository) Count ¶
func (g *GormTransactionRepository) Count(ctx context.Context) (int64, error)
func (*GormTransactionRepository) Create ¶
func (g *GormTransactionRepository) Create(ctx context.Context, data *transaction.Transaction) error
func (*GormTransactionRepository) Delete ¶
func (g *GormTransactionRepository) Delete(ctx context.Context, id int64) error
func (*GormTransactionRepository) GetAll ¶
func (g *GormTransactionRepository) GetAll(ctx context.Context) ([]*transaction.Transaction, error)
func (*GormTransactionRepository) GetByID ¶
func (g *GormTransactionRepository) GetByID(ctx context.Context, id int64) (*transaction.Transaction, error)
func (*GormTransactionRepository) GetPaginated ¶
func (g *GormTransactionRepository) GetPaginated( ctx context.Context, limit, offset int, sortBy []string, ) ([]*transaction.Transaction, error)
func (*GormTransactionRepository) Update ¶
func (g *GormTransactionRepository) Update(ctx context.Context, data *transaction.Transaction) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.