Documentation ¶
Index ¶
- type CustomType
- func (*CustomType) Descriptor() ([]byte, []int)
- func (*CustomType) ProtoMessage()
- func (m *CustomType) Reset()
- func (m *CustomType) Size() (n int)
- func (m *CustomType) String() string
- func (m *CustomType) XXX_DiscardUnknown()
- func (m *CustomType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CustomType) XXX_Merge(src proto.Message)
- func (m *CustomType) XXX_Size() int
- func (m *CustomType) XXX_Unmarshal(b []byte) error
- type OriginalTemplate
- func (*OriginalTemplate) Descriptor() ([]byte, []int)
- func (m *OriginalTemplate) GetSet() string
- func (m *OriginalTemplate) GetSubject() string
- func (m *OriginalTemplate) GetTemplateFile() string
- func (m *OriginalTemplate) GetTopic() string
- func (*OriginalTemplate) ProtoMessage()
- func (m *OriginalTemplate) Reset()
- func (m *OriginalTemplate) Size() (n int)
- func (m *OriginalTemplate) String() string
- func (m *OriginalTemplate) XXX_DiscardUnknown()
- func (m *OriginalTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OriginalTemplate) XXX_Merge(src proto.Message)
- func (m *OriginalTemplate) XXX_Size() int
- func (m *OriginalTemplate) XXX_Unmarshal(b []byte) error
- type SMTPClient
- type SmtpOptions
- func (*SmtpOptions) Descriptor() ([]byte, []int)
- func (m *SmtpOptions) GetFrom() string
- func (m *SmtpOptions) GetHost() string
- func (m *SmtpOptions) GetPort() int32
- func (m *SmtpOptions) GetSubjectAndBody(data interface{}, topic string, sets ...string) (subject, body string, err error)
- func (m *SmtpOptions) GetTo() []string
- func (m *SmtpOptions) GetUsername() string
- func (*SmtpOptions) ProtoMessage()
- func (m *SmtpOptions) Reset()
- func (m *SmtpOptions) Size() (n int)
- func (m *SmtpOptions) String() string
- func (m *SmtpOptions) XXX_DiscardUnknown()
- func (m *SmtpOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SmtpOptions) XXX_Merge(src proto.Message)
- func (m *SmtpOptions) XXX_Size() int
- func (m *SmtpOptions) XXX_Unmarshal(b []byte) error
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomType ¶
type CustomType struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CustomType) Descriptor ¶
func (*CustomType) Descriptor() ([]byte, []int)
func (*CustomType) ProtoMessage ¶
func (*CustomType) ProtoMessage()
func (*CustomType) Reset ¶
func (m *CustomType) Reset()
func (*CustomType) Size ¶
func (m *CustomType) Size() (n int)
func (*CustomType) String ¶
func (m *CustomType) String() string
func (*CustomType) XXX_DiscardUnknown ¶
func (m *CustomType) XXX_DiscardUnknown()
func (*CustomType) XXX_Marshal ¶
func (m *CustomType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CustomType) XXX_Merge ¶
func (m *CustomType) XXX_Merge(src proto.Message)
func (*CustomType) XXX_Size ¶
func (m *CustomType) XXX_Size() int
func (*CustomType) XXX_Unmarshal ¶
func (m *CustomType) XXX_Unmarshal(b []byte) error
type OriginalTemplate ¶
type OriginalTemplate struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` TemplateFile string `protobuf:"bytes,2,opt,name=template_file,json=templateFile,proto3" json:"template_file,omitempty"` Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` Set string `protobuf:"bytes,4,opt,name=set,proto3" json:"set,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OriginalTemplate) Descriptor ¶
func (*OriginalTemplate) Descriptor() ([]byte, []int)
func (*OriginalTemplate) GetSet ¶
func (m *OriginalTemplate) GetSet() string
func (*OriginalTemplate) GetSubject ¶
func (m *OriginalTemplate) GetSubject() string
func (*OriginalTemplate) GetTemplateFile ¶
func (m *OriginalTemplate) GetTemplateFile() string
func (*OriginalTemplate) GetTopic ¶
func (m *OriginalTemplate) GetTopic() string
func (*OriginalTemplate) ProtoMessage ¶
func (*OriginalTemplate) ProtoMessage()
func (*OriginalTemplate) Reset ¶
func (m *OriginalTemplate) Reset()
func (*OriginalTemplate) Size ¶
func (m *OriginalTemplate) Size() (n int)
func (*OriginalTemplate) String ¶
func (m *OriginalTemplate) String() string
func (*OriginalTemplate) XXX_DiscardUnknown ¶
func (m *OriginalTemplate) XXX_DiscardUnknown()
func (*OriginalTemplate) XXX_Marshal ¶
func (m *OriginalTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OriginalTemplate) XXX_Merge ¶
func (m *OriginalTemplate) XXX_Merge(src proto.Message)
func (*OriginalTemplate) XXX_Size ¶
func (m *OriginalTemplate) XXX_Size() int
func (*OriginalTemplate) XXX_Unmarshal ¶
func (m *OriginalTemplate) XXX_Unmarshal(b []byte) error
type SMTPClient ¶
type SMTPClient struct { *gomail.Dialer *gomail.Message // contains filtered or unexported fields }
func NewSMTPClient ¶
func NewSMTPClient(_ context.Context, options *SmtpOptions) (*SMTPClient, error)
func (*SMTPClient) Attach ¶
func (clt *SMTPClient) Attach(filename string, settings ...gomail.FileSetting)
func (*SMTPClient) NewClient ¶
func (clt *SMTPClient) NewClient() *SMTPClient
func (*SMTPClient) Send ¶
func (clt *SMTPClient) Send() error
func (*SMTPClient) SetFrom ¶
func (clt *SMTPClient) SetFrom(from string)
func (*SMTPClient) SetSubject ¶
func (clt *SMTPClient) SetSubject(subject string)
func (*SMTPClient) SetTo ¶
func (clt *SMTPClient) SetTo(to []string)
type SmtpOptions ¶
type SmtpOptions struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password *github_com_MicroOps_cn_fuck_safe.String `protobuf:"bytes,2,opt,name=password,proto3,customtype=github.com/MicroOps-cn/fuck/safe.String" json:"password,omitempty"` Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` From string `protobuf:"bytes,5,opt,name=from,proto3" json:"from,omitempty"` To []string `protobuf:"bytes,6,rep,name=to,proto3" json:"to,omitempty"` Template []Template `protobuf:"bytes,7,rep,name=template,proto3,customtype=Template" json:"template,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SmtpOptions) Descriptor ¶
func (*SmtpOptions) Descriptor() ([]byte, []int)
func (*SmtpOptions) GetFrom ¶
func (m *SmtpOptions) GetFrom() string
func (*SmtpOptions) GetHost ¶
func (m *SmtpOptions) GetHost() string
func (*SmtpOptions) GetPort ¶
func (m *SmtpOptions) GetPort() int32
func (*SmtpOptions) GetSubjectAndBody ¶
func (m *SmtpOptions) GetSubjectAndBody(data interface{}, topic string, sets ...string) (subject, body string, err error)
func (*SmtpOptions) GetTo ¶
func (m *SmtpOptions) GetTo() []string
func (*SmtpOptions) GetUsername ¶
func (m *SmtpOptions) GetUsername() string
func (*SmtpOptions) ProtoMessage ¶
func (*SmtpOptions) ProtoMessage()
func (*SmtpOptions) Reset ¶
func (m *SmtpOptions) Reset()
func (*SmtpOptions) Size ¶
func (m *SmtpOptions) Size() (n int)
func (*SmtpOptions) String ¶
func (m *SmtpOptions) String() string
func (*SmtpOptions) XXX_DiscardUnknown ¶
func (m *SmtpOptions) XXX_DiscardUnknown()
func (*SmtpOptions) XXX_Marshal ¶
func (m *SmtpOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SmtpOptions) XXX_Merge ¶
func (m *SmtpOptions) XXX_Merge(src proto.Message)
func (*SmtpOptions) XXX_Size ¶
func (m *SmtpOptions) XXX_Size() int
func (*SmtpOptions) XXX_Unmarshal ¶
func (m *SmtpOptions) XXX_Unmarshal(b []byte) error
type Template ¶
type Template struct { *OriginalTemplate // contains filtered or unexported fields }
func (Template) MarshalJSON ¶
func (*Template) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.