Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface {
UpdateLabels(unsafe, safe, finalized common.Hash) error
Height() (uint64, error)
HeaderByHash(hash common.Hash) (*monomer.Header, error)
Rollback(unsafe, safe, finalized common.Hash) error
HeaderByHeight(height uint64) (*monomer.Header, error)
AppendBlock(*monomer.Block) error
HeadHeader() (*monomer.Header, error)
BlockByLabel(opeth.BlockLabel) (*monomer.Block, error)
BlockByHeight(uint64) (*monomer.Block, error)
BlockByHash(hash common.Hash) (*monomer.Block, error)
HeadBlock() (*monomer.Block, error)
}
type EventListener ¶
type SelectiveListener ¶
type SelectiveListener struct {
OnEngineHTTPServeErrCb func(error)
OnEngineWebsocketServeErrCb func(error)
OnCometServeErrCb func(error)
OnPrometheusServeErrCb func(error)
}
func (*SelectiveListener) OnCometServeErr ¶
func (s *SelectiveListener) OnCometServeErr(err error)
func (*SelectiveListener) OnEngineHTTPServeErr ¶
func (s *SelectiveListener) OnEngineHTTPServeErr(err error)
func (*SelectiveListener) OnEngineWebsocketServeErr ¶
func (s *SelectiveListener) OnEngineWebsocketServeErr(err error)
func (*SelectiveListener) OnPrometheusServeErr ¶
func (s *SelectiveListener) OnPrometheusServeErr(err error)
Click to show internal directories.
Click to hide internal directories.