controllers

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccount added in v0.1.0

func CreateAccount(c *gin.Context)

CreateAccount creates a new account.

func CreateAllocation added in v0.1.0

func CreateAllocation(c *gin.Context)

CreateAllocation creates a new allocation.

func CreateBudget

func CreateBudget(c *gin.Context)

CreateBudget creates a new budget.

func CreateCategory added in v0.1.0

func CreateCategory(c *gin.Context)

CreateCategory creates a new category.

func CreateEnvelope added in v0.1.0

func CreateEnvelope(c *gin.Context)

CreateEnvelope creates a new envelope.

func CreateTransaction added in v0.1.0

func CreateTransaction(c *gin.Context)

CreateTransaction creates a new transaction.

func DeleteAccount added in v0.1.0

func DeleteAccount(c *gin.Context)

DeleteAccount removes a account, identified by its ID.

func DeleteAllocation added in v0.1.0

func DeleteAllocation(c *gin.Context)

DeleteAllocation removes a allocation, identified by its ID.

func DeleteBudget

func DeleteBudget(c *gin.Context)

DeleteBudget removes a budget, identified by its ID.

func DeleteCategory added in v0.1.0

func DeleteCategory(c *gin.Context)

DeleteCategory removes a category, identified by its ID.

func DeleteEnvelope added in v0.1.0

func DeleteEnvelope(c *gin.Context)

DeleteEnvelope removes a envelope, identified by its ID.

func DeleteTransaction added in v0.1.0

func DeleteTransaction(c *gin.Context)

DeleteTransaction removes a transaction, identified by its ID.

func FetchErrorHandler added in v0.6.0

func FetchErrorHandler(c *gin.Context, err error)

FetchErrorHandler handles errors for fetching data from the database.

func GetAccount added in v0.1.0

func GetAccount(c *gin.Context)

GetAccount retrieves an account by its ID.

func GetAccountTransactions added in v0.1.0

func GetAccountTransactions(c *gin.Context)

GetAccountTransactions returns all transactions for the account.

func GetAccounts added in v0.1.0

func GetAccounts(c *gin.Context)

GetAccounts retrieves all accounts.

func GetAllocation added in v0.1.0

func GetAllocation(c *gin.Context)

GetAllocation retrieves a allocation by its ID.

func GetAllocations added in v0.1.0

func GetAllocations(c *gin.Context)

GetAllocations retrieves all allocations.

func GetBudget

func GetBudget(c *gin.Context)

GetBudget retrieves a budget by its ID.

func GetBudgets

func GetBudgets(c *gin.Context)

GetBudgets retrieves all budgets.

func GetCategories added in v0.1.0

func GetCategories(c *gin.Context)

GetCategories retrieves all categories.

func GetCategory added in v0.1.0

func GetCategory(c *gin.Context)

GetCategory retrieves a category by its ID.

func GetEnvelope added in v0.1.0

func GetEnvelope(c *gin.Context)

GetEnvelope retrieves a envelope by its ID.

func GetEnvelopes added in v0.1.0

func GetEnvelopes(c *gin.Context)

GetEnvelopes retrieves all envelopes.

func GetTransaction added in v0.1.0

func GetTransaction(c *gin.Context)

GetTransaction retrieves an transaction by its ID.

func GetTransactions added in v0.1.0

func GetTransactions(c *gin.Context)

GetTransactions retrieves all transactions.

func RegisterAccountRoutes added in v0.1.0

func RegisterAccountRoutes(r *gin.RouterGroup)

RegisterAccountRoutes registers the routes for accounts with the RouterGroup that is passed.

func RegisterAllocationRoutes added in v0.1.0

func RegisterAllocationRoutes(r *gin.RouterGroup)

RegisterAllocationRoutes registers the routes for allocations with the RouterGroup that is passed.

func RegisterBudgetRoutes added in v0.1.0

func RegisterBudgetRoutes(r *gin.RouterGroup)

RegisterBudgetRoutes registers the routes for budgets with the RouterGroup that is passed.

func RegisterCategoryRoutes added in v0.1.0

func RegisterCategoryRoutes(r *gin.RouterGroup)

RegisterCategoryRoutes registers the routes for categories with the RouterGroup that is passed.

func RegisterEnvelopeRoutes added in v0.1.0

func RegisterEnvelopeRoutes(r *gin.RouterGroup)

RegisterEnvelopeRoutes registers the routes for envelopes with the RouterGroup that is passed.

func RegisterTransactionRoutes added in v0.1.0

func RegisterTransactionRoutes(r *gin.RouterGroup)

RegisterTransactionRoutes registers the routes for transactions with the RouterGroup that is passed.

func Router added in v0.5.0

func Router() (*gin.Engine, error)

Router controls the routes for the API.

func UpdateAccount added in v0.1.0

func UpdateAccount(c *gin.Context)

UpdateAccount updates an account, selected by the ID parameter.

func UpdateAllocation added in v0.1.0

func UpdateAllocation(c *gin.Context)

UpdateAllocation updates a allocation, selected by the ID parameter.

func UpdateBudget

func UpdateBudget(c *gin.Context)

UpdateBudget updates a budget, selected by the ID parameter.

func UpdateCategory added in v0.1.0

func UpdateCategory(c *gin.Context)

UpdateCategory updates a category, selected by the ID parameter.

func UpdateEnvelope added in v0.1.0

func UpdateEnvelope(c *gin.Context)

UpdateEnvelope updates a envelope, selected by the ID parameter.

func UpdateTransaction added in v0.1.0

func UpdateTransaction(c *gin.Context)

UpdateTransaction updates an transaction, selected by the ID parameter.

Types

type Month added in v0.11.0

type Month struct {
	Month time.Time `form:"month" time_format:"2006-01" time_utc:"1"`
}

Month is used to parse requests for data about a specific month.

Jump to

Keyboard shortcuts

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