letter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	// Name of the sender / recipient.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Email address of the sender / recipient.
	Address              string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Address) Descriptor

func (*Address) Descriptor() ([]byte, []int)

func (*Address) GetAddress

func (m *Address) GetAddress() string

func (*Address) GetName

func (m *Address) GetName() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

func (*Address) XXX_DiscardUnknown

func (m *Address) XXX_DiscardUnknown()

func (*Address) XXX_Marshal

func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Address) XXX_Merge

func (m *Address) XXX_Merge(src proto.Message)

func (*Address) XXX_Size

func (m *Address) XXX_Size() int

func (*Address) XXX_Unmarshal

func (m *Address) XXX_Unmarshal(b []byte) error

type Attachment

type Attachment struct {
	// Filename of the attachment.
	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	// MIME header of the attachment.
	Header map[string]*HeaderValues `` /* 153-byte string literal not displayed */
	// Contents of the attachment.
	Content              []byte   `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Attachment) Descriptor

func (*Attachment) Descriptor() ([]byte, []int)

func (*Attachment) GetContent

func (m *Attachment) GetContent() []byte

func (*Attachment) GetFilename

func (m *Attachment) GetFilename() string

func (*Attachment) GetHeader

func (m *Attachment) GetHeader() map[string]*HeaderValues

func (*Attachment) ProtoMessage

func (*Attachment) ProtoMessage()

func (*Attachment) Reset

func (m *Attachment) Reset()

func (*Attachment) String

func (m *Attachment) String() string

func (*Attachment) XXX_DiscardUnknown

func (m *Attachment) XXX_DiscardUnknown()

func (*Attachment) XXX_Marshal

func (m *Attachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Attachment) XXX_Merge

func (m *Attachment) XXX_Merge(src proto.Message)

func (*Attachment) XXX_Size

func (m *Attachment) XXX_Size() int

func (*Attachment) XXX_Unmarshal

func (m *Attachment) XXX_Unmarshal(b []byte) error

type HeaderValues

type HeaderValues struct {
	// The header values.
	Values               []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HeaderValues) Descriptor

func (*HeaderValues) Descriptor() ([]byte, []int)

func (*HeaderValues) GetValues

func (m *HeaderValues) GetValues() []string

func (*HeaderValues) ProtoMessage

func (*HeaderValues) ProtoMessage()

func (*HeaderValues) Reset

func (m *HeaderValues) Reset()

func (*HeaderValues) String

func (m *HeaderValues) String() string

func (*HeaderValues) XXX_DiscardUnknown

func (m *HeaderValues) XXX_DiscardUnknown()

func (*HeaderValues) XXX_Marshal

func (m *HeaderValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HeaderValues) XXX_Merge

func (m *HeaderValues) XXX_Merge(src proto.Message)

func (*HeaderValues) XXX_Size

func (m *HeaderValues) XXX_Size() int

func (*HeaderValues) XXX_Unmarshal

func (m *HeaderValues) XXX_Unmarshal(b []byte) error

type Letter

type Letter struct {
	// Email subject.
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// Email sender.
	From *Address `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// "To" recipients.
	To []*Address `protobuf:"bytes,3,rep,name=to,proto3" json:"to,omitempty"`
	// "Cc" recipients.
	Cc []*Address `protobuf:"bytes,4,rep,name=cc,proto3" json:"cc,omitempty"`
	// "Bcc" recipients.
	Bcc []*Address `protobuf:"bytes,5,rep,name=bcc,proto3" json:"bcc,omitempty"`
	// Email body in text format.
	Text string `protobuf:"bytes,6,opt,name=text,proto3" json:"text,omitempty"`
	// Email body in HTML format.
	Html string `protobuf:"bytes,7,opt,name=html,proto3" json:"html,omitempty"`
	// Email attachments.
	Attachments          []*Attachment `protobuf:"bytes,8,rep,name=attachments,proto3" json:"attachments,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Letter) Descriptor

func (*Letter) Descriptor() ([]byte, []int)

func (*Letter) GetAttachments

func (m *Letter) GetAttachments() []*Attachment

func (*Letter) GetBcc

func (m *Letter) GetBcc() []*Address

func (*Letter) GetCc

func (m *Letter) GetCc() []*Address

func (*Letter) GetFrom

func (m *Letter) GetFrom() *Address

func (*Letter) GetHtml

func (m *Letter) GetHtml() string

func (*Letter) GetSubject

func (m *Letter) GetSubject() string

func (*Letter) GetText

func (m *Letter) GetText() string

func (*Letter) GetTo

func (m *Letter) GetTo() []*Address

func (*Letter) ProtoMessage

func (*Letter) ProtoMessage()

func (*Letter) Reset

func (m *Letter) Reset()

func (*Letter) String

func (m *Letter) String() string

func (*Letter) XXX_DiscardUnknown

func (m *Letter) XXX_DiscardUnknown()

func (*Letter) XXX_Marshal

func (m *Letter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Letter) XXX_Merge

func (m *Letter) XXX_Merge(src proto.Message)

func (*Letter) XXX_Size

func (m *Letter) XXX_Size() int

func (*Letter) XXX_Unmarshal

func (m *Letter) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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