server

package
v0.0.0-...-d990fe8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressesResponse

type AddressesResponse struct {
	VertcoinAddress string
	AssetAddress    string
	StealthAddress  string
}

type AssetBalanceResponse

type AssetBalanceResponse struct {
	TotalBalance uint64
}

type AssetResponseAsset

type AssetResponseAsset struct {
	AssetID  string
	Ticker   string
	Decimals uint8
	Balance  uint64
}

type AssetsResponse

type AssetsResponse struct {
	Assets []AssetResponseAsset
}

type BalanceResponse

type BalanceResponse struct {
	TotalBalance   uint64
	StealthBalance uint64
}

type ErrorResponse

type ErrorResponse struct {
	Error        bool
	ErrorDetails string
}

type HttpServer

type HttpServer struct {
	// contains filtered or unexported fields
}

func (*HttpServer) Addresses

func (h *HttpServer) Addresses(w http.ResponseWriter, r *http.Request)

func (*HttpServer) AllAssets

func (h *HttpServer) AllAssets(w http.ResponseWriter, r *http.Request)

func (*HttpServer) AssetBalance

func (h *HttpServer) AssetBalance(w http.ResponseWriter, r *http.Request)

func (*HttpServer) Balance

func (h *HttpServer) Balance(w http.ResponseWriter, r *http.Request)

func (*HttpServer) ChangeRpcSettings

func (h *HttpServer) ChangeRpcSettings(w http.ResponseWriter, r *http.Request)

func (*HttpServer) FollowAsset

func (h *HttpServer) FollowAsset(w http.ResponseWriter, r *http.Request)

func (*HttpServer) Home

func (h *HttpServer) Home(w http.ResponseWriter, r *http.Request)

func (*HttpServer) MyAssets

func (h *HttpServer) MyAssets(w http.ResponseWriter, r *http.Request)

func (*HttpServer) Network

func (h *HttpServer) Network(w http.ResponseWriter, r *http.Request)

func (*HttpServer) NewAsset

func (h *HttpServer) NewAsset(w http.ResponseWriter, r *http.Request)

func (*HttpServer) RpcSettings

func (h *HttpServer) RpcSettings(w http.ResponseWriter, r *http.Request)

func (*HttpServer) Run

func (h *HttpServer) Run() error

func (*HttpServer) SyncStatus

func (h *HttpServer) SyncStatus(w http.ResponseWriter, r *http.Request)

func (*HttpServer) TransferAsset

func (h *HttpServer) TransferAsset(w http.ResponseWriter, r *http.Request)

func (*HttpServer) TransferVTC

func (h *HttpServer) TransferVTC(w http.ResponseWriter, r *http.Request, params TransferAssetParameters)

func (*HttpServer) TransferVTCStealth

func (h *HttpServer) TransferVTCStealth(w http.ResponseWriter, r *http.Request, params TransferAssetParameters)

func (*HttpServer) UnfollowAsset

func (h *HttpServer) UnfollowAsset(w http.ResponseWriter, r *http.Request)

type NetworkResponse

type NetworkResponse struct {
	NetworkName string
}

type NewAssetParameters

type NewAssetParameters struct {
	TotalSupply uint64
	Decimals    uint8
	Ticker      string
}

type NewAssetResult

type NewAssetResult struct {
	TxID string
}

type RpcSettingsResponse

type RpcSettingsResponse struct {
	RpcHost     string
	RpcUser     string
	RpcPassword string
}

type TransferAssetParameters

type TransferAssetParameters struct {
	AssetID          string
	Amount           uint64
	RecipientAddress string
	UseStealth       bool
}

type TransferAssetResult

type TransferAssetResult struct {
	TxID string
}

Jump to

Keyboard shortcuts

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