serialize

package
v0.0.0-...-ddd0786 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2016 License: ISC Imports: 1 Imported by: 0

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

This section is empty.

Functions

This section is empty.

Types

type Encoding

type Encoding struct {
	Format  uint64 `protobuf:"varint,1,opt,name=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) ProtoMessage

func (*Encoding) ProtoMessage()

func (*Encoding) Reset

func (m *Encoding) Reset()

func (*Encoding) String

func (m *Encoding) String() string

type ImapData

type ImapData struct {
	TimeReceived string `protobuf:"bytes,1,opt,name=time_received" 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) ProtoMessage

func (*ImapData) ProtoMessage()

func (*ImapData) Reset

func (m *ImapData) Reset()

func (*ImapData) String

func (m *ImapData) String() string

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:"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:"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) GetEncoding

func (m *Message) GetEncoding() *Encoding

func (*Message) GetImapData

func (m *Message) GetImapData() *ImapData

func (*Message) GetState

func (m *Message) GetState() *MessageState

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

type MessageState

type MessageState struct {
	PubkeyRequested bool   `protobuf:"varint,1,opt,name=pubkey_requested" json:"pubkey_requested,omitempty"`
	PowIndex        uint64 `protobuf:"varint,2,opt,name=pow_index" json:"pow_index,omitempty"`
	AckPowIndex     uint64 `protobuf:"varint,3,opt,name=ack_pow_index" json:"ack_pow_index,omitempty"`
	SendTries       uint32 `protobuf:"varint,4,opt,name=send_tries" json:"send_tries,omitempty"`
	LastSend        string `protobuf:"bytes,5,opt,name=last_send" json:"last_send,omitempty"`
	AckReceived     bool   `protobuf:"varint,6,opt,name=ack_received" json:"ack_received,omitempty"`
	AckExpected     bool   `protobuf:"varint,7,opt,name=ack_expected" json:"ack_expected,omitempty"`
	Received        bool   `protobuf:"varint,8,opt,name=received" json:"received,omitempty"`
}

MessageState is the state of the message.

func (*MessageState) ProtoMessage

func (*MessageState) ProtoMessage()

func (*MessageState) Reset

func (m *MessageState) Reset()

func (*MessageState) String

func (m *MessageState) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL