Documentation ¶
Index ¶
- type Block
- type BlockProbe
- type ChainProbe
- type Network
- type PacemakerProbe
- type PeerStats
- type PowProbe
- type Probe
- func (p *Probe) HandlePeers(w http.ResponseWriter, r *http.Request)
- func (p *Probe) HandleProbe(w http.ResponseWriter, r *http.Request)
- func (p *Probe) HandlePubkey(w http.ResponseWriter, r *http.Request)
- func (p *Probe) HandleReplay(w http.ResponseWriter, r *http.Request)
- func (p *Probe) HandleVersion(w http.ResponseWriter, r *http.Request)
- type ProbeResult
- type QC
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Number uint32 `json:"number"` ID meter.Bytes32 `json:"id"` ParentID meter.Bytes32 `json:"parentID"` BlockType string `json:"blockType"` QC *QC `json:"qc"` Timestamp uint64 `json:"timestamp"` TxCount int `json:"txCount"` LastKBlockHeight uint32 `json:"lastKBlockHeight"` HasCommitteeInfo bool `json:"hasCommitteeInfo"` Nonce uint64 `json:"nonce"` }
Block block
type BlockProbe ¶ added in v1.2.0
type ChainProbe ¶ added in v1.2.0
type PacemakerProbe ¶ added in v1.2.0
type PacemakerProbe struct { Mode string `json:"mode"` StartHeight uint32 `json:"startHeight"` StartRound uint32 `json:"startRound"` CurRound uint32 `json:"curRound"` MyCommitteeIndex int `json:"myCommitteeIndex"` LastVotingHeight uint32 `json:"lastVotingHeight"` ProposalCount int `json:"proposalCount"` PendingCount int `json:"pendingCount"` PendingLowest uint32 `json:"pendingLowest"` QCHigh *QC `json:"qcHigh"` BlockExecuted *BlockProbe `json:"blockExecuted"` BlockLocked *BlockProbe `json:"blockLocked"` BlockLeaf *BlockProbe `json:"blockLeaf"` }
type PeerStats ¶
type PeerStats struct { Name string `json:"name"` BestBlockID meter.Bytes32 `json:"bestBlockID"` TotalScore uint64 `json:"totalScore"` PeerID string `json:"peerID"` NetAddr string `json:"netAddr"` Inbound bool `json:"inbound"` Duration uint64 `json:"duration"` }
func ConvertPeersStats ¶
type Probe ¶
type Probe struct { Cons *consensus.ConsensusReactor ComplexPubkey string Chain *chain.Chain Version string Network Network }
func (*Probe) HandlePeers ¶
func (p *Probe) HandlePeers(w http.ResponseWriter, r *http.Request)
func (*Probe) HandleProbe ¶
func (p *Probe) HandleProbe(w http.ResponseWriter, r *http.Request)
func (*Probe) HandlePubkey ¶
func (p *Probe) HandlePubkey(w http.ResponseWriter, r *http.Request)
func (*Probe) HandleReplay ¶ added in v1.2.0
func (p *Probe) HandleReplay(w http.ResponseWriter, r *http.Request)
func (*Probe) HandleVersion ¶
func (p *Probe) HandleVersion(w http.ResponseWriter, r *http.Request)
type ProbeResult ¶
type ProbeResult struct { Name string `json:"name"` PubKey string `json:"pubkey"` PubKeyValid bool `json:"pubkeyValid"` Version string `json:"version"` DelegatesSource string `json:"delegatesSource"` IsCommitteeMember bool `json:"isCommitteeMember"` IsPacemakerRunning bool `json:"isPacemakerRunning"` InDelegateList bool `json:"inDelegateList"` Pacemaker *PacemakerProbe `json:"pacemaker"` Chain *ChainProbe `json:"chain"` Pow *PowProbe `json:"pow"` }
Click to show internal directories.
Click to hide internal directories.