Documentation ¶
Overview ¶
Package mail is a generated protocol buffer package.
It is generated from these files:
proto/mail/mail.proto
It has these top-level messages:
Message Recipient SendTemplateRequest SendTemplateResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMailingHandler ¶
func RegisterMailingHandler(s server.Server, hdlr MailingHandler, opts ...server.HandlerOption)
Types ¶
type Mailing ¶
type Mailing struct {
MailingHandler
}
func (*Mailing) SendTemplate ¶
func (h *Mailing) SendTemplate(ctx context.Context, in *SendTemplateRequest, out *SendTemplateResponse) error
type MailingClient ¶
type MailingClient interface {
SendTemplate(ctx context.Context, in *SendTemplateRequest, opts ...client.CallOption) (*SendTemplateResponse, error)
}
func NewMailingClient ¶
func NewMailingClient(serviceName string, c client.Client) MailingClient
type MailingHandler ¶
type MailingHandler interface {
SendTemplate(context.Context, *SendTemplateRequest, *SendTemplateResponse) error
}
type Message ¶
type Message struct { From string `protobuf:"bytes,1,opt,name=from" json:"from,omitempty"` FromName string `protobuf:"bytes,2,opt,name=fromName" json:"fromName,omitempty"` To string `protobuf:"bytes,3,opt,name=to" json:"to,omitempty"` ToName string `protobuf:"bytes,4,opt,name=toName" json:"toName,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type Recipient ¶
type Recipient struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"` }
func (*Recipient) Descriptor ¶
func (*Recipient) ProtoMessage ¶
func (*Recipient) ProtoMessage()
type SendTemplateRequest ¶
type SendTemplateRequest struct { Message *Message `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` Template string `protobuf:"bytes,2,opt,name=template" json:"template,omitempty"` Variables map[string]string `` /* 138-byte string literal not displayed */ }
func (*SendTemplateRequest) Descriptor ¶
func (*SendTemplateRequest) Descriptor() ([]byte, []int)
func (*SendTemplateRequest) GetMessage ¶
func (m *SendTemplateRequest) GetMessage() *Message
func (*SendTemplateRequest) GetVariables ¶
func (m *SendTemplateRequest) GetVariables() map[string]string
func (*SendTemplateRequest) ProtoMessage ¶
func (*SendTemplateRequest) ProtoMessage()
func (*SendTemplateRequest) Reset ¶
func (m *SendTemplateRequest) Reset()
func (*SendTemplateRequest) String ¶
func (m *SendTemplateRequest) String() string
type SendTemplateResponse ¶
type SendTemplateResponse struct {
MessageID string `protobuf:"bytes,1,opt,name=messageID" json:"messageID,omitempty"`
}
func (*SendTemplateResponse) Descriptor ¶
func (*SendTemplateResponse) Descriptor() ([]byte, []int)
func (*SendTemplateResponse) ProtoMessage ¶
func (*SendTemplateResponse) ProtoMessage()
func (*SendTemplateResponse) Reset ¶
func (m *SendTemplateResponse) Reset()
func (*SendTemplateResponse) String ¶
func (m *SendTemplateResponse) String() string
Click to show internal directories.
Click to hide internal directories.