Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account int
func (*Account) Create ¶
func (account *Account) Create(manager hdwallet.AccountManager, response *JsonResponse) error
Creating a new account
type Address ¶
type Address int
func (*Address) Create ¶
func (_ *Address) Create(manage hdwallet.AddressManager, response *JsonResponse) error
type CreatedAccountResponse ¶
type JsonResponse ¶
type JsonResponse struct { Status bool `json:"status"` Data interface{} `json:"data"` Message string `json:"message"` }
RPC response structure
func (*JsonResponse) Error ¶
func (response *JsonResponse) Error(err error)
The Error function sets response status false and renders an error message
func (*JsonResponse) Render ¶
func (response *JsonResponse) Render(data interface{})
The render function renders response data and sets response status true
type ListAccountResponse ¶
type ListAccountResponse []CreatedAccountResponse
Click to show internal directories.
Click to hide internal directories.