controllers

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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