Documentation ¶
Overview ¶
Package mail is a generated protocol buffer package.
It is generated from these files:
mail.proto
It has these top-level messages:
MailRequest MailResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMailServer ¶
func RegisterMailServer(s *grpc.Server, srv MailServer)
Types ¶
type MailClient ¶
type MailClient interface {
SendMail(ctx context.Context, in *MailRequest, opts ...grpc.CallOption) (*MailResponse, error)
}
func NewMailClient ¶
func NewMailClient(cc *grpc.ClientConn) MailClient
type MailRequest ¶
type MailRequest struct { Template string `protobuf:"bytes,1,opt,name=template" json:"template,omitempty"` Mail string `protobuf:"bytes,2,opt,name=mail" json:"mail,omitempty"` Url string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"` }
func (*MailRequest) Descriptor ¶
func (*MailRequest) Descriptor() ([]byte, []int)
func (*MailRequest) GetMail ¶
func (m *MailRequest) GetMail() string
func (*MailRequest) GetTemplate ¶
func (m *MailRequest) GetTemplate() string
func (*MailRequest) GetUrl ¶
func (m *MailRequest) GetUrl() string
func (*MailRequest) ProtoMessage ¶
func (*MailRequest) ProtoMessage()
func (*MailRequest) Reset ¶
func (m *MailRequest) Reset()
func (*MailRequest) String ¶
func (m *MailRequest) String() string
type MailResponse ¶
type MailResponse struct {
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
}
func (*MailResponse) Descriptor ¶
func (*MailResponse) Descriptor() ([]byte, []int)
func (*MailResponse) GetSuccess ¶
func (m *MailResponse) GetSuccess() bool
func (*MailResponse) ProtoMessage ¶
func (*MailResponse) ProtoMessage()
func (*MailResponse) Reset ¶
func (m *MailResponse) Reset()
func (*MailResponse) String ¶
func (m *MailResponse) String() string
type MailServer ¶
type MailServer interface {
SendMail(context.Context, *MailRequest) (*MailResponse, error)
}
Click to show internal directories.
Click to hide internal directories.