Versions in this module Expand all Collapse all v0 v0.0.6 Sep 25, 2019 Changes in this version type Validator + Commission string v0.0.5 Aug 23, 2019 v0.0.4 Jul 11, 2019 Changes in this version + const Active + const FlagInfluxdbPassword + const FlagInfluxdbServer + const FlagInfluxdbUser + const FlagMaxGas + const FlagPrometheusPushGateway + const FlagPrometheusPushName + const FlagPrometheusServer + const Inactive + const UrlNodeProxy + const UrlPrefixNodes + const UrlPrefixPlugins + func CheckNodeType(nodeType NodeType) bool + func TxCN(t string, tx string, address string) string + type Block struct + EvidenceList EvidenceList + Header BlockHeader + Precommits []*BlockValidator + Txs [][]byte + type BlockHeader struct + AppHash string + ChainID string + ConsensusHash string + DataHash string + EvidenceHash string + Height int64 + ID int64 + LastCommitHash string + LastResultsHash string + NumTxs int64 + ProposerAddress string + Time time.Time + TotalTxs int64 + ValidatorsHash string type BlockValidator + VotingPower int64 + type ChainNode struct + Delay int64 + NodeID int64 + Remote string + type Coin struct + Amount int64 + Denom string + func ParseCoin(coinStr string) (coin Coin, err error) + type Coins []Coin + func ParseCoins(s string) (coins Coins, err error) + func (c Coins) String() string + type Evidence struct + Address string + Data string + Hash string + Height int64 + Time time.Time + type EvidenceList struct + Evidences []Evidence + Time time.Time + type Matrix struct + X string + Y string + type NodeType string + const NodeTypeCOSMOS + const NodeTypeQOS + const NodeTypeQSC + func (nt NodeType) String() string + type ResultBlockDuration struct + Duration int64 + Height int64 + type ResultEvidence struct + Height int64 + Time string + type ResultFee struct + Fee []Coin + GasUsed int64 + GasWanted int64 + Tx string + type ResultMatrix struct + List []Matrix + Title string + type ResultMissing struct + Height int64 + Time string type ResultStatus + BlockTimeAvg string + Height int64 + type ResultTime time.Time + func (rt *ResultTime) UnmarshalJSON(data []byte) (err error) + func (rt ResultTime) MarshalJSON() ([]byte, error) + func (rt ResultTime) String() string + func (rt ResultTime) Time() time.Time type ResultTx + Fee string + GasUsed int64 + GasWanted int64 + Hash string + Log string + Status int + TxDetail map[string][]json.RawMessage + TxStatus string + TxTypeCN string + type Tx struct + Code uint32 + Data []byte + GasUsed int64 + GasWanted int64 + Hash []byte + Height int64 + Index uint32 + Log string + TxStatus TxStatus + type TxByte []byte + type TxSendResult struct + Hash string + type TxStatus int + const TxStatusFaild + const TxStatusInit + const TxStatusSuccess + func (ts TxStatus) MarshalJSON() ([]byte, error) + func (ts TxStatus) String() string type Validator + BondHeight int64 + ConsPubKey string + Details string + Identity string + InactiveCode types.InactiveCode + InactiveHeight int64 + InactiveTime time.Time + Logo string + Name string + Owner string + Percent string + PrecommitNum int64 + Status int8 + StatusStr string + Uptime string + UptimeFloat float64 + Website string + type Validators []Validator + func (vals Validators) Len() int + func (vals Validators) Less(i, j int) bool + func (vals Validators) Swap(i, j int) v0.0.3 Dec 26, 2018 v0.0.2 Dec 25, 2018 v0.0.1 Dec 25, 2018 Changes in this version + const AuthAppKey + const AuthKey + const AuthNode + const AuthUserKey + const TokenKey + type AdminAccountStatus int + const AdminAccountStatusChecked + const AdminAccountStatusInit + func (aas AdminAccountStatus) String() string + type AdminNodeType struct + BaseURL string + Name string + Routers []NodeTypeRouter + type BlockValidator struct + Accum int64 + ChainID string + CreatedAt time.Time + Height int64 + Round int64 + Signature string + Timestamp time.Time + Type int64 + ValidatorAddress string + ValidatorIndex int64 + type ExplorerRoute string + const ExplorerRouteBlock + const ExplorerRouteNode + const ExplorerRouteValidtor + func (er ExplorerRoute) String() string + type LoginType int + const LoginWeb + type NodeTypeRouter struct + Hidden bool + Route string + type PriKey struct + Type string + Value string + type RPCError struct + Code int + Data string + Message string + type RPCResponse struct + Error *RPCError + ID string + JSONRPC string + Result interface{} + func NewRPCErrorResponse(id string, code int, msg string, data string) RPCResponse + func NewRPCSuccessResponse(cdc *amino.Codec, id string, res interface{}) RPCResponse + func RPCForbiddenError(id string, err error) RPCResponse + func RPCInternalError(id string, err error) RPCResponse + func RPCInvalidParamsError(id string, err error) RPCResponse + func RPCInvalidRequestError(id string, err error) RPCResponse + func RPCMethodNotFoundError(id string) RPCResponse + func RPCParseError(id string, err error) RPCResponse + func RPCServerError(id string, err error) RPCResponse + func RPCUnauthorizedError(id string, err error) RPCResponse + type ResultAccount struct + Address string + Coins types.BaseCoins + Nonce int64 + type ResultBlock struct + Block *ResultBlockBase + Txs []*ResultTx + Validators []*BlockValidator + type ResultBlockBase struct + BlockID string + ChainID string + CreatedAt time.Time + Data string + DataHash string + Height int64 + ID int64 + NumTxs int64 + Time time.Time + TotalTxs int64 + ValidatorsHash string + type ResultConsensusState struct + ChainID string + Height string + PrecommitsNum int64 + PrecommitsValue string + PrevotesNum int64 + PrevotesValue string + Round string + StartTime string + Step string + type ResultNodeTypes struct + Nodes []AdminNodeType + type ResultPeer struct + Channels string + CreateAt time.Time + ID int64 + ListenAddr string + Moniker string + Network string + PeerID string + RecvStart time.Time + SendStart time.Time + Version string + type ResultPeers struct + NPeers int64 + Peers []*ResultPeer + type ResultSequence struct + Apps []*Sequence + type ResultStatus struct + ConsensusState *ResultConsensusState + GenesisTime time.Time + TotalTxs int64 + TotalValidators int64 + type ResultTx struct + ChainID string + CreatedAt time.Time + Data json.RawMessage + Height int64 + Index int64 + Maxgas int64 + QcpFrom string + QcpIsresult bool + QcpSequence int64 + QcpTo string + QcpTxindex int64 + Time time.Time + TxType string + type ResultTxs struct + Txs []*ResultTx + type ResultValidator struct + Blocks []*BlockValidator + Validator *Validator + type Sequence struct + In int64 + Name string + Out int64 + type Validator struct + Accum int64 + Address string + ChainID string + CreatedAt time.Time + FirstBlockHeight int64 + FirstBlockTime time.Time + PubKeyType string + PubKeyValue string + VotingPower int64