Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpenseRepo ¶
type ExpenseRepo struct {
// contains filtered or unexported fields
}
func NewExpenseRepo ¶
func NewExpenseRepo(db *sql.DB) *ExpenseRepo
func (*ExpenseRepo) Add ¶
func (r *ExpenseRepo) Add(expense Expense) error
func (*ExpenseRepo) All ¶
func (r *ExpenseRepo) All() ([]Expense, error)
func (*ExpenseRepo) Summarize ¶
func (r *ExpenseRepo) Summarize() ([]ExpenseSummary, error)
type ExpenseSummary ¶
Click to show internal directories.
Click to hide internal directories.