mail

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MailServiceError_ErrorCode_name = map[int32]string{
	0: "OK",
	1: "INTERNAL_ERROR",
	2: "BAD_REQUEST",
	3: "UNAUTHORIZED_SENDER",
	4: "INVALID_ATTACHMENT_TYPE",
	5: "INVALID_HEADER_NAME",
	6: "INVALID_CONTENT_ID",
}
View Source
var MailServiceError_ErrorCode_value = map[string]int32{
	"OK":                      0,
	"INTERNAL_ERROR":          1,
	"BAD_REQUEST":             2,
	"UNAUTHORIZED_SENDER":     3,
	"INVALID_ATTACHMENT_TYPE": 4,
	"INVALID_HEADER_NAME":     5,
	"INVALID_CONTENT_ID":      6,
}

Functions

This section is empty.

Types

type MailAttachment

type MailAttachment struct {
	FileName             *string  `protobuf:"bytes,1,req,name=FileName" json:"FileName,omitempty"`
	Data                 []byte   `protobuf:"bytes,2,req,name=Data" json:"Data,omitempty"`
	ContentID            *string  `protobuf:"bytes,3,opt,name=ContentID" json:"ContentID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MailAttachment) Descriptor

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

func (*MailAttachment) GetContentID

func (m *MailAttachment) GetContentID() string

func (*MailAttachment) GetData

func (m *MailAttachment) GetData() []byte

func (*MailAttachment) GetFileName

func (m *MailAttachment) GetFileName() string

func (*MailAttachment) ProtoMessage

func (*MailAttachment) ProtoMessage()

func (*MailAttachment) Reset

func (m *MailAttachment) Reset()

func (*MailAttachment) String

func (m *MailAttachment) String() string

func (*MailAttachment) XXX_DiscardUnknown

func (m *MailAttachment) XXX_DiscardUnknown()

func (*MailAttachment) XXX_Marshal

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

func (*MailAttachment) XXX_Merge

func (dst *MailAttachment) XXX_Merge(src proto.Message)

func (*MailAttachment) XXX_Size

func (m *MailAttachment) XXX_Size() int

func (*MailAttachment) XXX_Unmarshal

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

type MailHeader

type MailHeader struct {
	Name                 *string  `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Value                *string  `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MailHeader) Descriptor

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

func (*MailHeader) GetName

func (m *MailHeader) GetName() string

func (*MailHeader) GetValue

func (m *MailHeader) GetValue() string

func (*MailHeader) ProtoMessage

func (*MailHeader) ProtoMessage()

func (*MailHeader) Reset

func (m *MailHeader) Reset()

func (*MailHeader) String

func (m *MailHeader) String() string

func (*MailHeader) XXX_DiscardUnknown

func (m *MailHeader) XXX_DiscardUnknown()

func (*MailHeader) XXX_Marshal

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

func (*MailHeader) XXX_Merge

func (dst *MailHeader) XXX_Merge(src proto.Message)

func (*MailHeader) XXX_Size

func (m *MailHeader) XXX_Size() int

func (*MailHeader) XXX_Unmarshal

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

type MailMessage

type MailMessage struct {
	Sender               *string           `protobuf:"bytes,1,req,name=Sender" json:"Sender,omitempty"`
	ReplyTo              *string           `protobuf:"bytes,2,opt,name=ReplyTo" json:"ReplyTo,omitempty"`
	To                   []string          `protobuf:"bytes,3,rep,name=To" json:"To,omitempty"`
	Cc                   []string          `protobuf:"bytes,4,rep,name=Cc" json:"Cc,omitempty"`
	Bcc                  []string          `protobuf:"bytes,5,rep,name=Bcc" json:"Bcc,omitempty"`
	Subject              *string           `protobuf:"bytes,6,req,name=Subject" json:"Subject,omitempty"`
	TextBody             *string           `protobuf:"bytes,7,opt,name=TextBody" json:"TextBody,omitempty"`
	HtmlBody             *string           `protobuf:"bytes,8,opt,name=HtmlBody" json:"HtmlBody,omitempty"`
	Attachment           []*MailAttachment `protobuf:"bytes,9,rep,name=Attachment" json:"Attachment,omitempty"`
	Header               []*MailHeader     `protobuf:"bytes,10,rep,name=Header" json:"Header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*MailMessage) Descriptor

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

func (*MailMessage) GetAttachment

func (m *MailMessage) GetAttachment() []*MailAttachment

func (*MailMessage) GetBcc

func (m *MailMessage) GetBcc() []string

func (*MailMessage) GetCc

func (m *MailMessage) GetCc() []string

func (*MailMessage) GetHeader

func (m *MailMessage) GetHeader() []*MailHeader

func (*MailMessage) GetHtmlBody

func (m *MailMessage) GetHtmlBody() string

func (*MailMessage) GetReplyTo

func (m *MailMessage) GetReplyTo() string

func (*MailMessage) GetSender

func (m *MailMessage) GetSender() string

func (*MailMessage) GetSubject

func (m *MailMessage) GetSubject() string

func (*MailMessage) GetTextBody

func (m *MailMessage) GetTextBody() string

func (*MailMessage) GetTo

func (m *MailMessage) GetTo() []string

func (*MailMessage) ProtoMessage

func (*MailMessage) ProtoMessage()

func (*MailMessage) Reset

func (m *MailMessage) Reset()

func (*MailMessage) String

func (m *MailMessage) String() string

func (*MailMessage) XXX_DiscardUnknown

func (m *MailMessage) XXX_DiscardUnknown()

func (*MailMessage) XXX_Marshal

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

func (*MailMessage) XXX_Merge

func (dst *MailMessage) XXX_Merge(src proto.Message)

func (*MailMessage) XXX_Size

func (m *MailMessage) XXX_Size() int

func (*MailMessage) XXX_Unmarshal

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

type MailServiceError

type MailServiceError struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MailServiceError) Descriptor

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

func (*MailServiceError) ProtoMessage

func (*MailServiceError) ProtoMessage()

func (*MailServiceError) Reset

func (m *MailServiceError) Reset()

func (*MailServiceError) String

func (m *MailServiceError) String() string

func (*MailServiceError) XXX_DiscardUnknown

func (m *MailServiceError) XXX_DiscardUnknown()

func (*MailServiceError) XXX_Marshal

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

func (*MailServiceError) XXX_Merge

func (dst *MailServiceError) XXX_Merge(src proto.Message)

func (*MailServiceError) XXX_Size

func (m *MailServiceError) XXX_Size() int

func (*MailServiceError) XXX_Unmarshal

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

type MailServiceError_ErrorCode

type MailServiceError_ErrorCode int32
const (
	MailServiceError_OK                      MailServiceError_ErrorCode = 0
	MailServiceError_INTERNAL_ERROR          MailServiceError_ErrorCode = 1
	MailServiceError_BAD_REQUEST             MailServiceError_ErrorCode = 2
	MailServiceError_UNAUTHORIZED_SENDER     MailServiceError_ErrorCode = 3
	MailServiceError_INVALID_ATTACHMENT_TYPE MailServiceError_ErrorCode = 4
	MailServiceError_INVALID_HEADER_NAME     MailServiceError_ErrorCode = 5
	MailServiceError_INVALID_CONTENT_ID      MailServiceError_ErrorCode = 6
)

func (MailServiceError_ErrorCode) Enum

func (MailServiceError_ErrorCode) EnumDescriptor

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

func (MailServiceError_ErrorCode) String

func (*MailServiceError_ErrorCode) UnmarshalJSON

func (x *MailServiceError_ErrorCode) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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