categorybudget

package
v0.0.0-...-94c2642 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryBudget

type CategoryBudget struct {
	ID       int             `json:"id"`
	Budget   int             `json:"budget"`
	Category int             `json:"category"`
	Amount   decimal.Decimal `json:"amount"`
}

type CategoryBudgets

type CategoryBudgets struct {
	// contains filtered or unexported fields
}

func New

func New(db *sql.DB, b *budget.Budgets) *CategoryBudgets

func (*CategoryBudgets) Fetch

func (c *CategoryBudgets) Fetch(id string) ([]CategoryBudget, error)

func (*CategoryBudgets) Handle

func (c *CategoryBudgets) Handle(w http.ResponseWriter, req *http.Request)

func (*CategoryBudgets) List

func (c *CategoryBudgets) List() ([]CategoryBudget, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL