handlers

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicHandler

func BasicHandler(writer http.ResponseWriter, request *http.Request)

BasicHandler serves the basic information about the application.

func CreateAccountHandler

func CreateAccountHandler(writer http.ResponseWriter, request *http.Request)

CreateAccountHandler creates a new account.

func CreateTransactionHandler

func CreateTransactionHandler(writer http.ResponseWriter, request *http.Request)

CreateTransactionHandler creates a new transaction in the system.

func DeleteAccountHandler

func DeleteAccountHandler(writer http.ResponseWriter, request *http.Request)

DeleteAccountHandler deletes an account by its ID.

func DeleteTransactionHandler

func DeleteTransactionHandler(writer http.ResponseWriter, request *http.Request)

DeleteTransactionHandler deletes a transaction by its ID.

func GetStatsBalancesHandler

func GetStatsBalancesHandler(writer http.ResponseWriter, request *http.Request)

GetStatsBalancesHandler serves the info about how total balance has varied over time.

func GetStatsBudgetHandler

func GetStatsBudgetHandler(writer http.ResponseWriter, request *http.Request)

GetStatsBudgetHandler serves all the budget information.

func GetTransactionHandler

func GetTransactionHandler(writer http.ResponseWriter, request *http.Request)

GetTransactionHandler gets a transaction by its ID.

func ListAccountsHandler

func ListAccountsHandler(writer http.ResponseWriter, request *http.Request)

ListAccountsHandler lists all accounts along with their balances.

func ListTransactionsHandler

func ListTransactionsHandler(writer http.ResponseWriter, request *http.Request)

ListTransactionsHandler lists transactions as per the provided queries.

func UpdateAccountHandler

func UpdateAccountHandler(writer http.ResponseWriter, request *http.Request)

UpdateAccountHandler updates an account by its ID.

func UpdateTransactionHandler

func UpdateTransactionHandler(writer http.ResponseWriter, request *http.Request)

UpdateTransactionHandler updates a transaction by its ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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