Documentation ¶ Index ¶ func DecodeMsgs(val []byte) ([]msgtypes.Message, error) func EncodeMsgs(msgs []msgtypes.Message) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DecodeMsgs ¶ func DecodeMsgs(val []byte) ([]msgtypes.Message, error) DecodeMsgs takes a byte slice, decodes it as a GOB-encoded slice of msgtypes.Message, and returns the decoded slice and any decoding error. func EncodeMsgs ¶ func EncodeMsgs(msgs []msgtypes.Message) ([]byte, error) EncodeMsgs encodes a given list of messages using GOB encoding and returns the []byte representation of the messages. If there is an error during encoding, the function logs the error and returns it. Types ¶ This section is empty. Source Files ¶ View all Source files encdec.go Click to show internal directories. Click to hide internal directories.