api

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWallet

func CreateWallet(c echo.Context) error

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

func DeleteWallet(c echo.Context) error

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 ReadFund

func ReadFund(c echo.Context) error

func ReadWallet

func ReadWallet(c echo.Context) error

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

func UpdateWallet(c echo.Context) error

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.

Jump to

Keyboard shortcuts

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