response

package
v0.0.0-...-43db901 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressArray

type AddressArray struct {
	Addresses []string `json:"addresses"`
}

type AddressHashes

type AddressHashes []common.Address

func (AddressHashes) StringArray

func (addressHashes AddressHashes) StringArray() []string

type AddressResponse

type AddressResponse struct {
	Address common.Address `json:"address"`
}

type CreationResponse

type CreationResponse struct {
	Created bool `json:"created"`
}

type DefaultResponse

type DefaultResponse struct {
	Message     string      `json:"message"`
	Success     bool        `json:"success"`
	Error       string      `json:"error"`
	Response    interface{} `json:"response"`
	Transaction *TxHash     `json:"txHash"`
	Endpoint    string      `json:"endpoint"`
}

func (*DefaultResponse) FormatTransactionResponse

func (response *DefaultResponse) FormatTransactionResponse(transaction string)

type NodeApplication

type NodeApplication struct {
	Code        int    `json:"code"`
	Status      string `json:"status"`
	PoolAddress string `json:"poolAddress"`
}

type NodePoolApplications

type NodePoolApplications struct {
	NodeApplications []NodeApplication `json:"applications"`
	Address          string            `json:"address"`
}

type PublicKeyResponse

type PublicKeyResponse struct {
	PublicKey string `json:"publicKey"`
}

type TxHash

type TxHash struct {
	Value       string          `json:"value,omitempty"`
	Status      bool            `json:"status"`
	EndPoint    string          `json:"statusEndpoint,omitempty"`
	Complete    bool            `json:"complete"`
	Etherscan   etherscan       `json:"etherscan,omitempty"`
	Transaction json.RawMessage `json:"transaction,omitempty"`
	Receipt     json.RawMessage `json:"receipt,omitempty"`
}

Jump to

Keyboard shortcuts

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