Documentation ¶
Index ¶
- func BasicHandler(writer http.ResponseWriter, request *http.Request)
- func CreateAccountHandler(writer http.ResponseWriter, request *http.Request)
- func CreateTransactionHandler(writer http.ResponseWriter, request *http.Request)
- func DeleteAccountHandler(writer http.ResponseWriter, request *http.Request)
- func DeleteTransactionHandler(writer http.ResponseWriter, request *http.Request)
- func GetStatsBalancesHandler(writer http.ResponseWriter, request *http.Request)
- func GetStatsBudgetHandler(writer http.ResponseWriter, request *http.Request)
- func GetTransactionHandler(writer http.ResponseWriter, request *http.Request)
- func ListAccountsHandler(writer http.ResponseWriter, request *http.Request)
- func ListTransactionsHandler(writer http.ResponseWriter, request *http.Request)
- func UpdateAccountHandler(writer http.ResponseWriter, request *http.Request)
- func UpdateTransactionHandler(writer http.ResponseWriter, request *http.Request)
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.