api

package
v0.0.0-...-c770a38 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	DB   *mongo.Database
	Port string
}

func (*APIConfig) HandleCreateAccount

func (apiConfig *APIConfig) HandleCreateAccount(w http.ResponseWriter, r *http.Request)

Creating Accounts

func (*APIConfig) HandleCreateCategory

func (apiConfig *APIConfig) HandleCreateCategory(w http.ResponseWriter, r *http.Request)

Creating Transaction Categories

func (*APIConfig) HandleCreateTransaction

func (apiConfig *APIConfig) HandleCreateTransaction(w http.ResponseWriter, r *http.Request)

Creating Transactions

func (*APIConfig) HandleDeleteTransaction

func (apiConfig *APIConfig) HandleDeleteTransaction(w http.ResponseWriter, r *http.Request)

Delete Transaction

func (*APIConfig) HandleGetCategory

func (apiConfig *APIConfig) HandleGetCategory(w http.ResponseWriter, r *http.Request)

Retrieving a single Transaction Category

func (*APIConfig) HandleHealth

func (apiConfig *APIConfig) HandleHealth(w http.ResponseWriter, r *http.Request)

func (*APIConfig) HandleListAccount

func (apiConfig *APIConfig) HandleListAccount(w http.ResponseWriter, r *http.Request)

Listing accounts

func (*APIConfig) HandleListCategory

func (apiConfig *APIConfig) HandleListCategory(w http.ResponseWriter, r *http.Request)

Retrieving a list of Transaction Categories

func (*APIConfig) HandleListTransaction

func (apiConfig *APIConfig) HandleListTransaction(w http.ResponseWriter, r *http.Request)

List Transactions

func (*APIConfig) HandleSetAccountValue

func (apiConfig *APIConfig) HandleSetAccountValue(w http.ResponseWriter, r *http.Request)

Account actions

func (*APIConfig) HandleUpdateTransaction

func (apiConfig *APIConfig) HandleUpdateTransaction(w http.ResponseWriter, r *http.Request)

Updating Transactions

Jump to

Keyboard shortcuts

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