explorer

package
v0.0.0-...-7fcd714 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Unlicense Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockchainStatus

type BlockchainStatus struct {
	Blocks    int `json:"blocks"`
	Txs       int `json:"txs"`
	Addresses int `json:"addresses"`
}

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

type Explorers

type Explorers map[string]*Explorer

Jump to

Keyboard shortcuts

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