email

package
v0.0.0-...-40cf777 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package email contains .proto definitions and generated code for the email service

Index

Constants

This section is empty.

Variables

View Source
var Email_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "email.Email",
	HandlerType: (*EmailServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Send",
			Handler:    _Email_Send_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "business/data/email/email.proto",
}

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

View Source
var File_business_data_email_email_proto protoreflect.FileDescriptor

Functions

func RegisterEmailServer

func RegisterEmailServer(s grpc.ServiceRegistrar, srv EmailServer)

Types

type EmailClient

type EmailClient interface {
	Send(ctx context.Context, in *EmailRequest, opts ...grpc.CallOption) (*EmailResponse, error)
}

EmailClient is the client API for Email 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 NewEmailClient

func NewEmailClient(cc grpc.ClientConnInterface) EmailClient

type EmailRequest

type EmailRequest struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*EmailRequest) Descriptor deprecated

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

Deprecated: Use EmailRequest.ProtoReflect.Descriptor instead.

func (*EmailRequest) GetEmail

func (x *EmailRequest) GetEmail() string

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 EmailResponse

type EmailResponse struct {
	Message string `protobuf:"bytes,1,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) 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 EmailServer

type EmailServer interface {
	Send(context.Context, *EmailRequest) (*EmailResponse, error)
	// contains filtered or unexported methods
}

EmailServer is the server API for Email service. All implementations must embed UnimplementedEmailServer for forward compatibility

type UnimplementedEmailServer

type UnimplementedEmailServer struct {
}

UnimplementedEmailServer must be embedded to have forward compatible implementations.

func (UnimplementedEmailServer) Send

type UnsafeEmailServer

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

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

Jump to

Keyboard shortcuts

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