Documentation ¶
Index ¶
- type Message
- func (_ *Message) CanMarshalMsg(z interface{}) bool
- func (_ *Message) CanUnmarshalMsg(z interface{}) bool
- func (z *Message) MarshalMsg(b []byte) (o []byte)
- func (z *Message) MsgIsZero() bool
- func (z *Message) Msgsize() (s int)
- func (msg Message) ToBeHashed() (protocol.HashID, []byte)
- func (z *Message) UnmarshalMsg(bts []byte) (o []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Message string `codec:"msg"` // contains filtered or unexported fields }
Message is used for messages with no special meaning
func (*Message) CanMarshalMsg ¶
func (*Message) CanUnmarshalMsg ¶
func (*Message) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (*Message) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (Message) ToBeHashed ¶
ToBeHashed implements the crypto.Hashable interface
Click to show internal directories.
Click to hide internal directories.