Documentation ¶
Index ¶
- Variables
- func RegisterEmailServiceServer(s grpc.ServiceRegistrar, srv EmailServiceServer)
- type Attachment
- func (*Attachment) Descriptor() ([]byte, []int)deprecated
- func (x *Attachment) GetContentType() string
- func (x *Attachment) GetData() []byte
- func (x *Attachment) GetFilename() string
- func (*Attachment) ProtoMessage()
- func (x *Attachment) ProtoReflect() protoreflect.Message
- func (x *Attachment) Reset()
- func (x *Attachment) String() string
- type EmailInfo
- func (*EmailInfo) Descriptor() ([]byte, []int)deprecated
- func (x *EmailInfo) GetFromAddress() string
- func (x *EmailInfo) GetHtml() string
- func (x *EmailInfo) GetPlainText() string
- func (x *EmailInfo) GetSubject() string
- func (x *EmailInfo) GetToAddress() string
- func (*EmailInfo) ProtoMessage()
- func (x *EmailInfo) ProtoReflect() protoreflect.Message
- func (x *EmailInfo) Reset()
- func (x *EmailInfo) String() string
- type EmailRequest
- func (*EmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EmailRequest) GetAttachment() *Attachment
- func (x *EmailRequest) GetEmailInfo() *EmailInfo
- func (m *EmailRequest) GetPayload() isEmailRequest_Payload
- func (*EmailRequest) ProtoMessage()
- func (x *EmailRequest) ProtoReflect() protoreflect.Message
- func (x *EmailRequest) Reset()
- func (x *EmailRequest) String() string
- type EmailRequest_Attachment
- type EmailRequest_EmailInfo
- type EmailResponse
- func (*EmailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EmailResponse) GetMessage() string
- func (x *EmailResponse) GetSuccess() bool
- func (*EmailResponse) ProtoMessage()
- func (x *EmailResponse) ProtoReflect() protoreflect.Message
- func (x *EmailResponse) Reset()
- func (x *EmailResponse) String() string
- type EmailServiceClient
- type EmailServiceServer
- type EmailService_SendEmailClient
- type EmailService_SendEmailServer
- type UnimplementedEmailServiceServer
- type UnsafeEmailServiceServer
Constants ¶
This section is empty.
Variables ¶
var EmailService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pkg.email.EmailService", HandlerType: (*EmailServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "SendEmail", Handler: _EmailService_SendEmail_Handler, ClientStreams: true, }, }, Metadata: "email.proto", }
EmailService_ServiceDesc is the grpc.ServiceDesc for EmailService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_email_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEmailServiceServer ¶
func RegisterEmailServiceServer(s grpc.ServiceRegistrar, srv EmailServiceServer)
Types ¶
type Attachment ¶
type Attachment struct { Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // contains filtered or unexported fields }
func (*Attachment) Descriptor
deprecated
func (*Attachment) Descriptor() ([]byte, []int)
Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
func (*Attachment) GetContentType ¶
func (x *Attachment) GetContentType() string
func (*Attachment) GetData ¶
func (x *Attachment) GetData() []byte
func (*Attachment) GetFilename ¶
func (x *Attachment) GetFilename() string
func (*Attachment) ProtoMessage ¶
func (*Attachment) ProtoMessage()
func (*Attachment) ProtoReflect ¶
func (x *Attachment) ProtoReflect() protoreflect.Message
func (*Attachment) Reset ¶
func (x *Attachment) Reset()
func (*Attachment) String ¶
func (x *Attachment) String() string
type EmailInfo ¶
type EmailInfo struct { FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` PlainText string `protobuf:"bytes,4,opt,name=plain_text,json=plainText,proto3" json:"plain_text,omitempty"` Html string `protobuf:"bytes,5,opt,name=html,proto3" json:"html,omitempty"` // contains filtered or unexported fields }
func (*EmailInfo) Descriptor
deprecated
func (*EmailInfo) GetFromAddress ¶
func (*EmailInfo) GetPlainText ¶
func (*EmailInfo) GetSubject ¶
func (*EmailInfo) GetToAddress ¶
func (*EmailInfo) ProtoMessage ¶
func (*EmailInfo) ProtoMessage()
func (*EmailInfo) ProtoReflect ¶
func (x *EmailInfo) ProtoReflect() protoreflect.Message
type EmailRequest ¶
type EmailRequest struct { // Types that are assignable to Payload: // // *EmailRequest_EmailInfo // *EmailRequest_Attachment Payload isEmailRequest_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
func (*EmailRequest) Descriptor
deprecated
func (*EmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmailRequest.ProtoReflect.Descriptor instead.
func (*EmailRequest) GetAttachment ¶
func (x *EmailRequest) GetAttachment() *Attachment
func (*EmailRequest) GetEmailInfo ¶
func (x *EmailRequest) GetEmailInfo() *EmailInfo
func (*EmailRequest) GetPayload ¶
func (m *EmailRequest) GetPayload() isEmailRequest_Payload
func (*EmailRequest) ProtoMessage ¶
func (*EmailRequest) ProtoMessage()
func (*EmailRequest) ProtoReflect ¶
func (x *EmailRequest) ProtoReflect() protoreflect.Message
func (*EmailRequest) Reset ¶
func (x *EmailRequest) Reset()
func (*EmailRequest) String ¶
func (x *EmailRequest) String() string
type EmailRequest_Attachment ¶
type EmailRequest_Attachment struct {
Attachment *Attachment `protobuf:"bytes,2,opt,name=attachment,proto3,oneof"`
}
type EmailRequest_EmailInfo ¶
type EmailRequest_EmailInfo struct {
EmailInfo *EmailInfo `protobuf:"bytes,1,opt,name=email_info,json=emailInfo,proto3,oneof"`
}
type EmailResponse ¶
type EmailResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*EmailResponse) Descriptor
deprecated
func (*EmailResponse) Descriptor() ([]byte, []int)
Deprecated: Use EmailResponse.ProtoReflect.Descriptor instead.
func (*EmailResponse) GetMessage ¶
func (x *EmailResponse) GetMessage() string
func (*EmailResponse) GetSuccess ¶
func (x *EmailResponse) GetSuccess() bool
func (*EmailResponse) ProtoMessage ¶
func (*EmailResponse) ProtoMessage()
func (*EmailResponse) ProtoReflect ¶
func (x *EmailResponse) ProtoReflect() protoreflect.Message
func (*EmailResponse) Reset ¶
func (x *EmailResponse) Reset()
func (*EmailResponse) String ¶
func (x *EmailResponse) String() string
type EmailServiceClient ¶
type EmailServiceClient interface {
SendEmail(ctx context.Context, opts ...grpc.CallOption) (EmailService_SendEmailClient, error)
}
EmailServiceClient is the client API for EmailService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEmailServiceClient ¶
func NewEmailServiceClient(cc grpc.ClientConnInterface) EmailServiceClient
type EmailServiceServer ¶
type EmailServiceServer interface { SendEmail(EmailService_SendEmailServer) error // contains filtered or unexported methods }
EmailServiceServer is the server API for EmailService service. All implementations must embed UnimplementedEmailServiceServer for forward compatibility
type EmailService_SendEmailClient ¶
type EmailService_SendEmailClient interface { Send(*EmailRequest) error CloseAndRecv() (*EmailResponse, error) grpc.ClientStream }
type EmailService_SendEmailServer ¶
type EmailService_SendEmailServer interface { SendAndClose(*EmailResponse) error Recv() (*EmailRequest, error) grpc.ServerStream }
type UnimplementedEmailServiceServer ¶
type UnimplementedEmailServiceServer struct { }
UnimplementedEmailServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedEmailServiceServer) SendEmail ¶
func (UnimplementedEmailServiceServer) SendEmail(EmailService_SendEmailServer) error
type UnsafeEmailServiceServer ¶
type UnsafeEmailServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEmailServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EmailServiceServer will result in compilation errors.