http

package
v0.0.0-...-c57a2f4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter() *mux.Router

Types

type AccountResponse

type AccountResponse struct {
	Account string `json:"account"`
	Id      uint32 `json:"id"`
}

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
	Code    int    `json:"code"`
}

func ListAccounts

func ListAccounts(w http.ResponseWriter, r *http.Request) *ErrorResponse

Getting list accounts of wallet by coin

func NewAccount

func NewAccount(w http.ResponseWriter, r *http.Request) *ErrorResponse

Creating a new account

func NewAddress

func NewAddress(w http.ResponseWriter, r *http.Request) *ErrorResponse

Generating a new address

func NewWallet

func NewWallet(w http.ResponseWriter, r *http.Request) *ErrorResponse

Creating a new wallet

type ListAccountResponse

type ListAccountResponse []AccountResponse

type NewAccountResponse

type NewAccountResponse struct {
	AccountResponse
	Coin string `json:"coin"`
}

Jump to

Keyboard shortcuts

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