emailPb

package
v0.0.0-...-a23a89c Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmailService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "emailPb.EmailService",
	HandlerType: (*EmailServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendVerifcation",
			Handler:    _EmailService_SendVerifcation_Handler,
		},
		{
			MethodName: "SendNotification",
			Handler:    _EmailService_SendNotification_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	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)

View Source
var File_email_proto protoreflect.FileDescriptor

Functions

func RegisterEmailServiceServer

func RegisterEmailServiceServer(s grpc.ServiceRegistrar, srv EmailServiceServer)

Types

type EmailServiceClient

type EmailServiceClient interface {
	SendVerifcation(ctx context.Context, in *UserVerifyReq, opts ...grpc.CallOption) (*Response, error)
	SendNotification(ctx context.Context, in *NotificationData, opts ...grpc.CallOption) (*Response, 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.

type EmailServiceServer

type EmailServiceServer interface {
	SendVerifcation(context.Context, *UserVerifyReq) (*Response, error)
	SendNotification(context.Context, *NotificationData) (*Response, error)
	// contains filtered or unexported methods
}

EmailServiceServer is the server API for EmailService service. All implementations must embed UnimplementedEmailServiceServer for forward compatibility

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type HttpError

type HttpError struct {
	Message    string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	StatusCode int32  `protobuf:"varint,2,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpError) Descriptor deprecated

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

Deprecated: Use HttpError.ProtoReflect.Descriptor instead.

func (*HttpError) GetMessage

func (x *HttpError) GetMessage() string

func (*HttpError) GetStatusCode

func (x *HttpError) GetStatusCode() int32

func (*HttpError) ProtoMessage

func (*HttpError) ProtoMessage()

func (*HttpError) ProtoReflect

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

func (*HttpError) Reset

func (x *HttpError) Reset()

func (*HttpError) String

func (x *HttpError) String() string

type NotificationData

type NotificationData struct {
	Username  string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"`
	UserEmail string `protobuf:"bytes,2,opt,name=UserEmail,proto3" json:"UserEmail,omitempty"`
	Title     string `protobuf:"bytes,3,opt,name=Title,proto3" json:"Title,omitempty"`
	Message   string `protobuf:"bytes,4,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationData) Descriptor deprecated

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

Deprecated: Use NotificationData.ProtoReflect.Descriptor instead.

func (*NotificationData) GetMessage

func (x *NotificationData) GetMessage() string

func (*NotificationData) GetTitle

func (x *NotificationData) GetTitle() string

func (*NotificationData) GetUserEmail

func (x *NotificationData) GetUserEmail() string

func (*NotificationData) GetUsername

func (x *NotificationData) GetUsername() string

func (*NotificationData) ProtoMessage

func (*NotificationData) ProtoMessage()

func (*NotificationData) ProtoReflect

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

func (*NotificationData) Reset

func (x *NotificationData) Reset()

func (*NotificationData) String

func (x *NotificationData) String() string

type Response

type Response struct {

	// Types that are assignable to Res:
	//
	//	*Response_Err
	//	*Response_Empty
	Res isResponse_Res `protobuf_oneof:"Res"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetEmpty

func (x *Response) GetEmpty() *Empty

func (*Response) GetErr

func (x *Response) GetErr() *HttpError

func (*Response) GetRes

func (m *Response) GetRes() isResponse_Res

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type Response_Empty

type Response_Empty struct {
	Empty *Empty `protobuf:"bytes,2,opt,name=empty,proto3,oneof"`
}

type Response_Err

type Response_Err struct {
	Err *HttpError `protobuf:"bytes,1,opt,name=Err,proto3,oneof"`
}

type UnimplementedEmailServiceServer

type UnimplementedEmailServiceServer struct {
}

UnimplementedEmailServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEmailServiceServer) SendNotification

func (UnimplementedEmailServiceServer) SendVerifcation

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.

type UserVerifyReq

type UserVerifyReq struct {
	Username  string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"`
	UserEmail string `protobuf:"bytes,2,opt,name=UserEmail,proto3" json:"UserEmail,omitempty"`
	Link      string `protobuf:"bytes,3,opt,name=Link,proto3" json:"Link,omitempty"`
	// contains filtered or unexported fields
}

func (*UserVerifyReq) Descriptor deprecated

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

Deprecated: Use UserVerifyReq.ProtoReflect.Descriptor instead.

func (x *UserVerifyReq) GetLink() string

func (*UserVerifyReq) GetUserEmail

func (x *UserVerifyReq) GetUserEmail() string

func (*UserVerifyReq) GetUsername

func (x *UserVerifyReq) GetUsername() string

func (*UserVerifyReq) ProtoMessage

func (*UserVerifyReq) ProtoMessage()

func (*UserVerifyReq) ProtoReflect

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

func (*UserVerifyReq) Reset

func (x *UserVerifyReq) Reset()

func (*UserVerifyReq) String

func (x *UserVerifyReq) String() string

Jump to

Keyboard shortcuts

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