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: 3 Imported by: 0

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

func FuncEnumFromString(s string) (FuncEnum, error)

FuncEnumFromString parses a string to return the handler func enum

Jump to

Keyboard shortcuts

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