Documentation ¶
Index ¶
- func AddAccount(w http.ResponseWriter, r *http.Request, context *ledgerContext.AppContext)
- func GetAccounts(w http.ResponseWriter, r *http.Request, context *ledgerContext.AppContext)
- func GetTransactions(w http.ResponseWriter, r *http.Request, context *ledgerContext.AppContext)
- func MakeTransaction(w http.ResponseWriter, r *http.Request, context *ledgerContext.AppContext)
- func Ping(w http.ResponseWriter, r *http.Request)
- func UpdateAccount(w http.ResponseWriter, r *http.Request, context *ledgerContext.AppContext)
- func UpdateTransaction(w http.ResponseWriter, r *http.Request, context *ledgerContext.AppContext)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAccount ¶
func AddAccount(w http.ResponseWriter, r *http.Request, context *ledgerContext.AppContext)
AddAccount creates a new account with the input ID and data
func GetAccounts ¶
func GetAccounts(w http.ResponseWriter, r *http.Request, context *ledgerContext.AppContext)
GetAccounts returns the list of accounts that matches the search query
func GetTransactions ¶
func GetTransactions(w http.ResponseWriter, r *http.Request, context *ledgerContext.AppContext)
GetTransactions returns the list of transactions that matches the search query
func MakeTransaction ¶
func MakeTransaction(w http.ResponseWriter, r *http.Request, context *ledgerContext.AppContext)
MakeTransaction creates a new transaction from the request data
func Ping ¶
func Ping(w http.ResponseWriter, r *http.Request)
Ping responds 200 OK when the server is up and healthy
func UpdateAccount ¶
func UpdateAccount(w http.ResponseWriter, r *http.Request, context *ledgerContext.AppContext)
UpdateAccount updates data of an account with the input ID
func UpdateTransaction ¶
func UpdateTransaction(w http.ResponseWriter, r *http.Request, context *ledgerContext.AppContext)
UpdateTransaction updates the data of a transaction with the input ID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.