Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockID2Num ¶
Types ¶
type Action ¶
type Action struct { Account string `json:"account"` Name string `json:"name"` Authorization []PermissionLevel `json:"authorization"` Data []byte `json:"data"` }
type Block ¶
type Block struct { Producer string `json:"producer"` Num uint32 `json:"num"` ID types.Checksum256 `json:"id"` Previous types.Checksum256 `json:"previous"` Confirmed uint16 `json:"confirmed"` TransactionMRoot types.Checksum256 `json:"transaction_mroot"` ActionMRoot types.Checksum256 `json:"action_mroot"` }
type ChainHandler ¶
type ChainHandler struct {
// contains filtered or unexported fields
}
func NewChainHandler ¶
func NewChainHandler(h HandlerFunc, chainTyp types.ClientType) *ChainHandler
func (*ChainHandler) Close ¶
func (c *ChainHandler) Close()
func (*ChainHandler) OnBlock ¶
func (c *ChainHandler) OnBlock(block *types.BlockGeneralInfo) error
type HandlerFunc ¶
type PermissionLevel ¶
Click to show internal directories.
Click to hide internal directories.