Versions in this module Expand all Collapse all v1 v1.1.0 Jun 19, 2022 Changes in this version + func Build(msg Message) ([]byte, error) + type Handler interface + HandleTx func(nodeID ids.ShortID, requestID uint32, msg *Tx) error + type Message interface + Bytes func() []byte + Handle func(handler Handler, nodeID ids.ShortID, requestID uint32) error + func Parse(bytes []byte) (Message, error) + type NoopHandler struct + Log logging.Logger + func (h NoopHandler) HandleTx(nodeID ids.ShortID, requestID uint32, _ *Tx) error + type Tx struct + Tx []byte + func (m *Tx) Bytes() []byte + func (msg *Tx) Handle(handler Handler, nodeID ids.ShortID, requestID uint32) error