Documentation ¶
Index ¶
- type Message
- func (m *Message) Data() []byte
- func (m *Message) From() []byte
- func (m *Message) IsInterfaceNil() bool
- func (m *Message) Key() []byte
- func (m *Message) Payload() []byte
- func (m *Message) Peer() core.PeerID
- func (m *Message) SeqNo() []byte
- func (m *Message) Signature() []byte
- func (m *Message) Timestamp() int64
- func (m *Message) Topic() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { FromField []byte DataField []byte PayloadField []byte SeqNoField []byte TopicField string SignatureField []byte KeyField []byte PeerField core.PeerID TimestampField int64 }
Message is a data holder struct
func (*Message) IsInterfaceNil ¶
IsInterfaceNil returns true if there is no value under the interface
func (*Message) Key ¶
Key returns the message public key (if it can not be recovered from From field)
func (*Message) Payload ¶ added in v1.0.133
Payload returns the encapsulated message along with meta data such as timestamp
Click to show internal directories.
Click to hide internal directories.