Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWallet ¶
CreateWallet creates a new wallet. Params:
- A JSON object which represents the Wallet model
Returns:
A JSON object that represents the status of the operation. This JSON object can be either from error message or successful response.
func DeleteWallet ¶
DeleteWallet deletes a wallet. Params:
- `:id`: is the Wallet ID
Returns:
A JSON object that represents the status of the operation. This JSON object can be either from error message or successful response.
func ReadWallet ¶
ReadWallet reads a wallet. When the `id` is defined in the request URI this method returns the wallet with that `id`, otherwise ReadWallet returns all wallets stored in the database. Params:
- `:id`: Wallet ID
Returns:
A JSON object that represents the status of the operation. This JSON object can be either from error message or successful response.
func UpdateWallet ¶
UpdateWallet updates a wallet. Params:
- `:id`: Wallet ID which will be updated
- A JSON object which represents the Wallet model
Returns:
A JSON object that represents the status of the operation. This JSON object can be either from error message or successful response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.