Documentation
¶
Overview ¶
Package serialize is a generated protocol buffer package.
It is generated from these files:
encoding.proto
It has these top-level messages:
Message MessageState ImapData Encoding
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Format_name = map[int32]string{
0: "UNUSED",
1: "ENCODING1",
2: "ENCODING2",
}
View Source
var Format_value = map[string]int32{
"UNUSED": 0,
"ENCODING1": 1,
"ENCODING2": 2,
}
Functions ¶
This section is empty.
Types ¶
type Encoding ¶
type Encoding struct {
Format Format `protobuf:"varint,1,opt,name=format,enum=Format" json:"format,omitempty"`
Subject []byte `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
}
Encoding a bitmessage object payload.
func (*Encoding) Descriptor ¶
func (*Encoding) ProtoMessage ¶
func (*Encoding) ProtoMessage()
type ImapData ¶
type ImapData struct {
TimeReceived string `protobuf:"bytes,1,opt,name=time_received,json=timeReceived" json:"time_received,omitempty"`
Flags int32 `protobuf:"varint,2,opt,name=flags" json:"flags,omitempty"`
}
ImapData is an entry in the database that contains a message and some related metadata.
func (*ImapData) Descriptor ¶
func (*ImapData) ProtoMessage ¶
func (*ImapData) ProtoMessage()
type Message ¶
type Message struct {
Encoding *Encoding `protobuf:"bytes,1,opt,name=encoding" json:"encoding,omitempty"`
From string `protobuf:"bytes,2,opt,name=from" json:"from,omitempty"`
To string `protobuf:"bytes,3,opt,name=to" json:"to,omitempty"`
OfChannel bool `protobuf:"varint,4,opt,name=of_channel,json=ofChannel" json:"of_channel,omitempty"`
Expiration string `protobuf:"bytes,5,opt,name=expiration" json:"expiration,omitempty"`
Ack []byte `protobuf:"bytes,6,opt,name=ack,proto3" json:"ack,omitempty"`
ImapData *ImapData `protobuf:"bytes,7,opt,name=imap_data,json=imapData" json:"imap_data,omitempty"`
Object []byte `protobuf:"bytes,8,opt,name=object,proto3" json:"object,omitempty"`
State *MessageState `protobuf:"bytes,9,opt,name=state" json:"state,omitempty"`
}
Message is a bitmessage.
func (*Message) Descriptor ¶
func (*Message) GetEncoding ¶
func (*Message) GetImapData ¶
func (*Message) GetState ¶
func (m *Message) GetState() *MessageState
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type MessageState ¶
type MessageState struct {
PubkeyRequested bool `protobuf:"varint,1,opt,name=pubkey_requested,json=pubkeyRequested" json:"pubkey_requested,omitempty"`
SendTries uint32 `protobuf:"varint,4,opt,name=send_tries,json=sendTries" json:"send_tries,omitempty"`
LastSend string `protobuf:"bytes,5,opt,name=last_send,json=lastSend" json:"last_send,omitempty"`
AckReceived bool `protobuf:"varint,6,opt,name=ack_received,json=ackReceived" json:"ack_received,omitempty"`
AckExpected bool `protobuf:"varint,7,opt,name=ack_expected,json=ackExpected" json:"ack_expected,omitempty"`
Received bool `protobuf:"varint,8,opt,name=received" json:"received,omitempty"`
}
MessageState is the state of the message.
func (*MessageState) Descriptor ¶
func (*MessageState) Descriptor() ([]byte, []int)
func (*MessageState) ProtoMessage ¶
func (*MessageState) ProtoMessage()
func (*MessageState) Reset ¶
func (m *MessageState) Reset()
func (*MessageState) String ¶
func (m *MessageState) String() string
Click to show internal directories.
Click to hide internal directories.