mailer

package
v0.0.0-...-1649e63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MailerService_Send_FullMethodName = "/mailer.v1.MailerService/Send"
)

Variables

View Source
var File_v1_mailer_mailer_proto protoreflect.FileDescriptor
View Source
var MailerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mailer.v1.MailerService",
	HandlerType: (*MailerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Send",
			Handler:    _MailerService_Send_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/mailer/mailer.proto",
}

MailerService_ServiceDesc is the grpc.ServiceDesc for MailerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMailerServiceServer

func RegisterMailerServiceServer(s grpc.ServiceRegistrar, srv MailerServiceServer)

Types

type Mail

type Mail struct {
	To      []string `protobuf:"bytes,2,rep,name=to,proto3" json:"to,omitempty"`
	Subject string   `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	Html    string   `protobuf:"bytes,4,opt,name=html,proto3" json:"html,omitempty"`
	// contains filtered or unexported fields
}

func (*Mail) Descriptor deprecated

func (*Mail) Descriptor() ([]byte, []int)

Deprecated: Use Mail.ProtoReflect.Descriptor instead.

func (*Mail) GetHtml

func (x *Mail) GetHtml() string

func (*Mail) GetSubject

func (x *Mail) GetSubject() string

func (*Mail) GetTo

func (x *Mail) GetTo() []string

func (*Mail) ProtoMessage

func (*Mail) ProtoMessage()

func (*Mail) ProtoReflect

func (x *Mail) ProtoReflect() protoreflect.Message

func (*Mail) Reset

func (x *Mail) Reset()

func (*Mail) String

func (x *Mail) String() string

type MailerServiceClient

type MailerServiceClient interface {
	Send(ctx context.Context, in *Mail, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

MailerServiceClient is the client API for MailerService 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.

type MailerServiceServer

type MailerServiceServer interface {
	Send(context.Context, *Mail) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

MailerServiceServer is the server API for MailerService service. All implementations must embed UnimplementedMailerServiceServer for forward compatibility

type UnimplementedMailerServiceServer

type UnimplementedMailerServiceServer struct {
}

UnimplementedMailerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMailerServiceServer) Send

type UnsafeMailerServiceServer

type UnsafeMailerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeMailerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MailerServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL