Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoding ¶
type Encoding interface { Encoding() uint64 Message() []byte ToProtobuf() *serialize.Encoding // contains filtered or unexported methods }
Encoding represents a msg or broadcast object payload.
type Encoding1 ¶
type Encoding1 struct {
Body string
}
Encoding1 implements the Bitmessage interface and represents a MsgMsg or MsgBroadcast with encoding type 1.
func (*Encoding1) ToProtobuf ¶
ToProtobuf encodes the message in a protobuf format.
type Encoding2 ¶
Encoding2 implements the Bitmessage interface and represents a MsgMsg or MsgBroadcast with encoding type 2. It also implements the
func (*Encoding2) ToProtobuf ¶
ToProtobuf encodes the message in a protobuf format.
Click to show internal directories.
Click to hide internal directories.