Documentation ¶
Overview ¶
Package go_micro_srv_smtp is a generated protocol buffer package.
It is generated from these files:
github.com/Rakanixu/smtp/srv/proto/smtp/smtp.proto
It has these top-level messages:
SendRequest SendResponse SetSettingsRequest SetSettingsResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSMTPHandler ¶
func RegisterSMTPHandler(s server.Server, hdlr SMTPHandler)
Types ¶
type SMTP ¶
type SMTP struct {
SMTPHandler
}
func (*SMTP) Send ¶
func (h *SMTP) Send(ctx context.Context, in *SendRequest, out *SendResponse) error
func (*SMTP) SetSettings ¶
func (h *SMTP) SetSettings(ctx context.Context, in *SetSettingsRequest, out *SetSettingsResponse) error
type SMTPClient ¶
type SMTPClient interface { Send(ctx context.Context, in *SendRequest, opts ...client.CallOption) (*SendResponse, error) SetSettings(ctx context.Context, in *SetSettingsRequest, opts ...client.CallOption) (*SetSettingsResponse, error) }
func NewSMTPClient ¶
func NewSMTPClient(serviceName string, c client.Client) SMTPClient
type SMTPHandler ¶
type SMTPHandler interface { Send(context.Context, *SendRequest, *SendResponse) error SetSettings(context.Context, *SetSettingsRequest, *SetSettingsResponse) error }
type SendRequest ¶
type SendRequest struct { Recipient []string `protobuf:"bytes,1,rep,name=recipient" json:"recipient,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject" json:"subject,omitempty"` Body string `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"` }
func (*SendRequest) Descriptor ¶
func (*SendRequest) Descriptor() ([]byte, []int)
func (*SendRequest) ProtoMessage ¶
func (*SendRequest) ProtoMessage()
func (*SendRequest) Reset ¶
func (m *SendRequest) Reset()
func (*SendRequest) String ¶
func (m *SendRequest) String() string
type SendResponse ¶
type SendResponse struct { }
func (*SendResponse) Descriptor ¶
func (*SendResponse) Descriptor() ([]byte, []int)
func (*SendResponse) ProtoMessage ¶
func (*SendResponse) ProtoMessage()
func (*SendResponse) Reset ¶
func (m *SendResponse) Reset()
func (*SendResponse) String ¶
func (m *SendResponse) String() string
type SetSettingsRequest ¶
type SetSettingsRequest struct { EmailHost string `protobuf:"bytes,1,opt,name=email_host,json=emailHost" json:"email_host,omitempty"` EmailHostPort string `protobuf:"bytes,2,opt,name=email_host_port,json=emailHostPort" json:"email_host_port,omitempty"` EmailHostUser string `protobuf:"bytes,3,opt,name=email_host_user,json=emailHostUser" json:"email_host_user,omitempty"` EmailHostPassword string `protobuf:"bytes,4,opt,name=email_host_password,json=emailHostPassword" json:"email_host_password,omitempty"` DefaultFromEmail string `protobuf:"bytes,5,opt,name=default_from_email,json=defaultFromEmail" json:"default_from_email,omitempty"` }
func (*SetSettingsRequest) Descriptor ¶
func (*SetSettingsRequest) Descriptor() ([]byte, []int)
func (*SetSettingsRequest) ProtoMessage ¶
func (*SetSettingsRequest) ProtoMessage()
func (*SetSettingsRequest) Reset ¶
func (m *SetSettingsRequest) Reset()
func (*SetSettingsRequest) String ¶
func (m *SetSettingsRequest) String() string
type SetSettingsResponse ¶
type SetSettingsResponse struct { }
func (*SetSettingsResponse) Descriptor ¶
func (*SetSettingsResponse) Descriptor() ([]byte, []int)
func (*SetSettingsResponse) ProtoMessage ¶
func (*SetSettingsResponse) ProtoMessage()
func (*SetSettingsResponse) Reset ¶
func (m *SetSettingsResponse) Reset()
func (*SetSettingsResponse) String ¶
func (m *SetSettingsResponse) String() string
Click to show internal directories.
Click to hide internal directories.