Documentation ¶
Index ¶
- type BlockchainStatus
- type Explorer
- type ExplorerQueries
- func (eq *ExplorerQueries) ExploreCoin(bn nodes.BitNodes, username, password, coin string)
- func (eq *ExplorerQueries) GetAddr(coin, id string) map[string]interface{}
- func (eq *ExplorerQueries) GetBlock(coin, id string) map[string]interface{}
- func (eq *ExplorerQueries) GetBlockShort(coin, blockhash string) map[string]interface{}
- func (eq *ExplorerQueries) GetBlocks(coin string, per, page int) (blocks []map[string]interface{})
- func (eq *ExplorerQueries) GetExplorer(coin string) *BlockchainStatus
- func (eq *ExplorerQueries) GetInfo(coin string) map[string]interface{}
- func (eq *ExplorerQueries) GetLastBlock(coin string) int
- func (eq *ExplorerQueries) GetMemPool(coin string) []string
- func (eq *ExplorerQueries) GetMiningInfo(coin string) map[string]interface{}
- func (eq *ExplorerQueries) GetNetworkInfo(coin string) map[string]interface{}
- func (eq *ExplorerQueries) GetPeers(coin string) []interface{}
- func (eq *ExplorerQueries) GetStatus(coin string) (*BlockchainStatus, error)
- func (eq *ExplorerQueries) GetTx(coin, id string) map[string]interface{}
- func (eq *ExplorerQueries) LastBlock(w http.ResponseWriter, r *http.Request)
- func (eq *ExplorerQueries) NewExplorer(coin string) *Explorer
- func (eq *ExplorerQueries) ViewAddr(w http.ResponseWriter, r *http.Request)
- func (eq *ExplorerQueries) ViewBlock(w http.ResponseWriter, r *http.Request)
- func (eq *ExplorerQueries) ViewBlocks(w http.ResponseWriter, r *http.Request)
- func (eq *ExplorerQueries) ViewInfo(w http.ResponseWriter, r *http.Request)
- func (eq *ExplorerQueries) ViewMiningInfo(w http.ResponseWriter, r *http.Request)
- func (eq *ExplorerQueries) ViewPeers(w http.ResponseWriter, r *http.Request)
- func (eq *ExplorerQueries) ViewRawMemPool(w http.ResponseWriter, r *http.Request)
- func (eq *ExplorerQueries) ViewStatus(w http.ResponseWriter, r *http.Request)
- func (eq *ExplorerQueries) ViewTx(w http.ResponseWriter, r *http.Request)
- func (eq *ExplorerQueries) WriteExplorer(coin string) *BlockchainStatus
- type Explorers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockchainStatus ¶
type Explorer ¶
type Explorer struct { Coin string BitNodes nodes.BitNodes Status *BlockchainStatus }
type ExplorerQueries ¶
type ExplorerQueries struct {
// contains filtered or unexported fields
}
type Explorer struct { Status map[string]*BlockchainStatus `json:"status"` }
func (*ExplorerQueries) ExploreCoin ¶
func (eq *ExplorerQueries) ExploreCoin(bn nodes.BitNodes, username, password, coin string)
GetExplorer updates the data from blockchain of a coin in the database
func (*ExplorerQueries) GetAddr ¶
func (eq *ExplorerQueries) GetAddr(coin, id string) map[string]interface{}
func (*ExplorerQueries) GetBlock ¶
func (eq *ExplorerQueries) GetBlock(coin, id string) map[string]interface{}
func (*ExplorerQueries) GetBlockShort ¶
func (eq *ExplorerQueries) GetBlockShort(coin, blockhash string) map[string]interface{}
func (*ExplorerQueries) GetBlocks ¶
func (eq *ExplorerQueries) GetBlocks(coin string, per, page int) (blocks []map[string]interface{})
func (*ExplorerQueries) GetExplorer ¶
func (eq *ExplorerQueries) GetExplorer(coin string) *BlockchainStatus
func (*ExplorerQueries) GetInfo ¶
func (eq *ExplorerQueries) GetInfo(coin string) map[string]interface{}
func (*ExplorerQueries) GetLastBlock ¶
func (eq *ExplorerQueries) GetLastBlock(coin string) int
func (*ExplorerQueries) GetMemPool ¶
func (eq *ExplorerQueries) GetMemPool(coin string) []string
func (*ExplorerQueries) GetMiningInfo ¶
func (eq *ExplorerQueries) GetMiningInfo(coin string) map[string]interface{}
func (*ExplorerQueries) GetNetworkInfo ¶
func (eq *ExplorerQueries) GetNetworkInfo(coin string) map[string]interface{}
func (*ExplorerQueries) GetPeers ¶
func (eq *ExplorerQueries) GetPeers(coin string) []interface{}
func (*ExplorerQueries) GetStatus ¶
func (eq *ExplorerQueries) GetStatus(coin string) (*BlockchainStatus, error)
func (*ExplorerQueries) GetTx ¶
func (eq *ExplorerQueries) GetTx(coin, id string) map[string]interface{}
func (*ExplorerQueries) LastBlock ¶
func (eq *ExplorerQueries) LastBlock(w http.ResponseWriter, r *http.Request)
func (*ExplorerQueries) NewExplorer ¶
func (eq *ExplorerQueries) NewExplorer(coin string) *Explorer
func (*ExplorerQueries) ViewAddr ¶
func (eq *ExplorerQueries) ViewAddr(w http.ResponseWriter, r *http.Request)
func (*ExplorerQueries) ViewBlock ¶
func (eq *ExplorerQueries) ViewBlock(w http.ResponseWriter, r *http.Request)
func (*ExplorerQueries) ViewBlocks ¶
func (eq *ExplorerQueries) ViewBlocks(w http.ResponseWriter, r *http.Request)
func (*ExplorerQueries) ViewInfo ¶
func (eq *ExplorerQueries) ViewInfo(w http.ResponseWriter, r *http.Request)
func (*ExplorerQueries) ViewMiningInfo ¶
func (eq *ExplorerQueries) ViewMiningInfo(w http.ResponseWriter, r *http.Request)
func (*ExplorerQueries) ViewPeers ¶
func (eq *ExplorerQueries) ViewPeers(w http.ResponseWriter, r *http.Request)
func (*ExplorerQueries) ViewRawMemPool ¶
func (eq *ExplorerQueries) ViewRawMemPool(w http.ResponseWriter, r *http.Request)
func (*ExplorerQueries) ViewStatus ¶
func (eq *ExplorerQueries) ViewStatus(w http.ResponseWriter, r *http.Request)
func (*ExplorerQueries) ViewTx ¶
func (eq *ExplorerQueries) ViewTx(w http.ResponseWriter, r *http.Request)
func (*ExplorerQueries) WriteExplorer ¶
func (eq *ExplorerQueries) WriteExplorer(coin string) *BlockchainStatus
Click to show internal directories.
Click to hide internal directories.