Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Status ... Status funcEnum = iota // BlockRequest ... BlockRequest // BlockResponse ... BlockResponse // BlockAnnounce ... BlockAnnounce // Transactions ... Transactions // BFT ... BFT )
note: do not change this order!
Variables ¶
View Source
var ErrUnknownFunc = errors.New("handler func: unknown")
ErrUnknownFunc is thrown when an unknown handler function is encountered.
Functions ¶
This section is empty.
Types ¶
type FuncEnum ¶
type FuncEnum interface { Type() funcEnum String() string }
FuncEnum are the exported handler func enums
func AllFuncEnums ¶
func AllFuncEnums() []FuncEnum
AllFuncEnums returns all of the handler func enums
func FuncEnumFromString ¶
FuncEnumFromString parses a string to return the handler func enum
Click to show internal directories.
Click to hide internal directories.