handler

package
v0.0.0-...-f5f0bdb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

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 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 handles incoming block announce messages TODO ...

func (*BlockAnnounceHandler) Type

Type returns the func enum

type BlockRequestHandler

type BlockRequestHandler struct{}

BlockRequestHandler implements the block request handler

func (*BlockRequestHandler) Func

Func handles incoming block request messages TODO ...

func (*BlockRequestHandler) Type

Type returns the func enum

type BlockResponseHandler

type BlockResponseHandler struct{}

BlockResponseHandler implements the block response handler

func (*BlockResponseHandler) Func

Func handles incoming block response messages TODO ...

func (*BlockResponseHandler) Type

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

func FromEnum

FromEnum ...

type StatusHandler

type StatusHandler struct{}

StatusHandler implements the status handler

func (*StatusHandler) Func

Func handles incoming status messages TODO ... TODO: We should check the genesisHash here and act appropriately

func (*StatusHandler) Type

Type returns the func enum

type TransactionsHandler

type TransactionsHandler struct{}

TransactionsHandler implements the transactions handler

func (*TransactionsHandler) Func

Func handles incoming transactions messages TODO ... TODO Propagate

func (*TransactionsHandler) Type

Type returns the func enum

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL