serialize

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: ISC Imports: 3 Imported by: 4

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) Descriptor() ([]byte, []int)

func (*Encoding) ProtoMessage

func (*Encoding) ProtoMessage()

func (*Encoding) Reset

func (m *Encoding) Reset()

func (*Encoding) String

func (m *Encoding) String() string

type Format

type Format int32
const (
	Format_UNUSED    Format = 0
	Format_ENCODING1 Format = 1
	Format_ENCODING2 Format = 2
)

func (Format) EnumDescriptor

func (Format) EnumDescriptor() ([]byte, []int)

func (Format) String

func (x Format) String() string

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) Descriptor() ([]byte, []int)

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=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) Descriptor() ([]byte, []int)

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=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

Jump to

Keyboard shortcuts

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