exchangeapi

package
v0.0.0-...-b7062c8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: LGPL-3.0-or-later Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API

func API(w http.ResponseWriter, r *http.Request)

API is a handle function for exchangeapi requests

func InitAPI

func InitAPI()

InitAPI initialize BoltDB database

Types

type Balance

type Balance struct {
	Error  string `json:"error"`
	Amount string `json:"amount"`
	EGS    string `json:"egs"`
}

Balance is the result structure of balamce handler

type DefaultAPI

type DefaultAPI struct {
	Error string `json:"error"`
}

DefaultAPI is the default answer structure

type History

type History struct {
	Error string     `json:"error"`
	Items []histOper `json:"history"`
}

History is an answer structure for history request

type NewKey

type NewKey struct {
	Error    string `json:"error"`
	Public   string `json:"public"`
	Address  string `json:"address"`
	WalletID int64  `json:"wallet_id"`
}

NewKey is an answer structure for newKey request

type Send

type Send struct {
	Error string `json:"error"`
}

Send is a answer structure for send handle function

Jump to

Keyboard shortcuts

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