budget_db

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyBudgetDB

type MyBudgetDB struct {
	*handler.Handler
}

func (MyBudgetDB) AddBudgetExpenditure

func (h MyBudgetDB) AddBudgetExpenditure(spent int, category string) error

func (MyBudgetDB) CalculateRemaining added in v0.1.112

func (h MyBudgetDB) CalculateRemaining(cr *entities.BudgetCalculateVariables) ([2]int, error)

func (MyBudgetDB) CreateBudget

func (h MyBudgetDB) CreateBudget(bv *entities.BudgetVariables) error

func (MyBudgetDB) GetBudgetData

func (h MyBudgetDB) GetBudgetData(filepath, filename string) error

func (MyBudgetDB) InsertHistory

func (h MyBudgetDB) InsertHistory(hv *entities.HistoryVariables) error

func (MyBudgetDB) ListOfExpection added in v0.1.124

func (h MyBudgetDB) ListOfExpection(bv *entities.BudgetVariables) ([]int, []int, error)

func (MyBudgetDB) RemoveBudget

func (h MyBudgetDB) RemoveBudget(category string) error

func (MyBudgetDB) RemoveHistory

func (h MyBudgetDB) RemoveHistory(category string) error

func (MyBudgetDB) TakeBudgetAmount

func (h MyBudgetDB) TakeBudgetAmount() ([]string, []int, error)

func (MyBudgetDB) UpdateBudget

func (h MyBudgetDB) UpdateBudget(bv *entities.BudgetVariables, new_category string) error

func (MyBudgetDB) UpdateBudgetCategory added in v0.1.122

func (h MyBudgetDB) UpdateBudgetCategory(new, old string) error

func (MyBudgetDB) ViewBudget

func (h MyBudgetDB) ViewBudget(category string) ([5]interface{}, error)

func (MyBudgetDB) ViewHistory

func (h MyBudgetDB) ViewHistory(category string) ([2]interface{}, error)

Jump to

Keyboard shortcuts

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