Documentation ¶
Index ¶
Constants ¶
const (
MailerService_Send_FullMethodName = "/mailer.v1.MailerService/Send"
)
Variables ¶
var File_v1_mailer_mailer_proto protoreflect.FileDescriptor
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) GetSubject ¶
func (*Mail) ProtoMessage ¶
func (*Mail) ProtoMessage()
func (*Mail) ProtoReflect ¶
func (x *Mail) ProtoReflect() protoreflect.Message
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.
func NewMailerServiceClient ¶
func NewMailerServiceClient(cc grpc.ClientConnInterface) MailerServiceClient
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.
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.