Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BFTHandler ¶
type BFTHandler struct{}
BFTHandler implements the bft handler
func (*BFTHandler) Func ¶
func (b *BFTHandler) Func(p clienttypes.InterfaceP2P, pr clienttypes.InterfacePeer, msg clienttypes.InterfaceMessage) error
Func handles incoming bft messages TODO ... TODO Propagate
func (*BFTHandler) Type ¶
func (b *BFTHandler) Type() handlertypes.FuncEnum
Type returns the func enum
type BlockAnnounceHandler ¶
type BlockAnnounceHandler struct{}
BlockAnnounceHandler implements the block announce handler
func (*BlockAnnounceHandler) Func ¶
func (b *BlockAnnounceHandler) Func(p clienttypes.InterfaceP2P, pr clienttypes.InterfacePeer, msg clienttypes.InterfaceMessage) error
Func handles incoming block announce messages TODO ...
func (*BlockAnnounceHandler) Type ¶
func (b *BlockAnnounceHandler) Type() handlertypes.FuncEnum
Type returns the func enum
type BlockRequestHandler ¶
type BlockRequestHandler struct{}
BlockRequestHandler implements the block request handler
func (*BlockRequestHandler) Func ¶
func (b *BlockRequestHandler) Func(p clienttypes.InterfaceP2P, pr clienttypes.InterfacePeer, msg clienttypes.InterfaceMessage) error
Func handles incoming block request messages TODO ...
func (*BlockRequestHandler) Type ¶
func (b *BlockRequestHandler) Type() handlertypes.FuncEnum
Type returns the func enum
type BlockResponseHandler ¶
type BlockResponseHandler struct{}
BlockResponseHandler implements the block response handler
func (*BlockResponseHandler) Func ¶
func (b *BlockResponseHandler) Func(p clienttypes.InterfaceP2P, pr clienttypes.InterfacePeer, msg clienttypes.InterfaceMessage) error
Func handles incoming block response messages TODO ...
func (*BlockResponseHandler) Type ¶
func (b *BlockResponseHandler) Type() handlertypes.FuncEnum
Type returns the func enum
type InterfaceHandler ¶
type InterfaceHandler interface { // Func handles the message Func(p clienttypes.InterfaceP2P, pr clienttypes.InterfacePeer, msg clienttypes.InterfaceMessage) error // Type returns the handler type Type() handlertypes.FuncEnum }
InterfaceHandler describes the methods of the handler package
type StatusHandler ¶
type StatusHandler struct{}
StatusHandler implements the status handler
func (*StatusHandler) Func ¶
func (s *StatusHandler) Func(p clienttypes.InterfaceP2P, pr clienttypes.InterfacePeer, msg clienttypes.InterfaceMessage) error
Func handles incoming status messages TODO ... TODO: We should check the genesisHash here and act appropriately
func (*StatusHandler) Type ¶
func (s *StatusHandler) Type() handlertypes.FuncEnum
Type returns the func enum
type TransactionsHandler ¶
type TransactionsHandler struct{}
TransactionsHandler implements the transactions handler
func (*TransactionsHandler) Func ¶
func (t *TransactionsHandler) Func(p clienttypes.InterfaceP2P, pr clienttypes.InterfacePeer, msg clienttypes.InterfaceMessage) error
Func handles incoming transactions messages TODO ... TODO Propagate
func (*TransactionsHandler) Type ¶
func (t *TransactionsHandler) Type() handlertypes.FuncEnum
Type returns the func enum