Documentation ¶
Index ¶
- Constants
- Variables
- type CheckPointHeap
- type Config
- type LostBlockInfo
- type LostBlockInfos
- type MinerState
- type MinerStates
- type Monitor
- func (m *Monitor) CalculateMiner(Signers []common.Address, parentBlockMiner common.Address, ...) *common.Address
- func (m *Monitor) HttpServer()
- func (m *Monitor) LatestCheckPointNumber(number int64) uint64
- func (m *Monitor) Loop(c *cli.Context) error
- func (m *Monitor) PrintMinerState(w http.ResponseWriter, r *http.Request)
- func (m *Monitor) ShutDown()
- func (m *Monitor) Start(c *cli.Context) error
- type SortMap
- type State
- type States
Constants ¶
View Source
const (
HpbNodeCheckpointInterval = 200
)
Variables ¶
View Source
var DefaultConfig = &Config{}
Functions ¶
This section is empty.
Types ¶
type CheckPointHeap ¶
type CheckPointHeap []uint64
func (CheckPointHeap) Len ¶
func (h CheckPointHeap) Len() int
func (CheckPointHeap) Less ¶
func (h CheckPointHeap) Less(i, j int) bool
func (*CheckPointHeap) Pop ¶
func (h *CheckPointHeap) Pop() interface{}
func (*CheckPointHeap) Push ¶
func (h *CheckPointHeap) Push(x interface{})
func (CheckPointHeap) Swap ¶
func (h CheckPointHeap) Swap(i, j int)
type Config ¶
type LostBlockInfo ¶
type LostBlockInfo struct {
// contains filtered or unexported fields
}
type LostBlockInfos ¶
type LostBlockInfos []*LostBlockInfo
type MinerState ¶
type MinerStates ¶
type MinerStates []MinerState
func (MinerStates) Len ¶
func (h MinerStates) Len() int
func (MinerStates) Less ¶
func (h MinerStates) Less(i, j int) bool
func (MinerStates) Swap ¶
func (h MinerStates) Swap(i, j int)
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func (*Monitor) CalculateMiner ¶
func (*Monitor) HttpServer ¶
func (m *Monitor) HttpServer()
func (*Monitor) LatestCheckPointNumber ¶
func (*Monitor) PrintMinerState ¶
func (m *Monitor) PrintMinerState(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.