Documentation
¶
Index ¶
- Variables
- func RegisterEmailServiceServer(s grpc.ServiceRegistrar, srv EmailServiceServer)
- type EmailServiceClient
- type EmailServiceServer
- type Empty
- type HttpError
- type NotificationData
- func (*NotificationData) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationData) GetMessage() string
- func (x *NotificationData) GetTitle() string
- func (x *NotificationData) GetUserEmail() string
- func (x *NotificationData) GetUsername() string
- func (*NotificationData) ProtoMessage()
- func (x *NotificationData) ProtoReflect() protoreflect.Message
- func (x *NotificationData) Reset()
- func (x *NotificationData) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetEmpty() *Empty
- func (x *Response) GetErr() *HttpError
- func (m *Response) GetRes() isResponse_Res
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Response_Empty
- type Response_Err
- type UnimplementedEmailServiceServer
- type UnsafeEmailServiceServer
- type UserVerifyReq
- func (*UserVerifyReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserVerifyReq) GetLink() string
- func (x *UserVerifyReq) GetUserEmail() string
- func (x *UserVerifyReq) GetUsername() string
- func (*UserVerifyReq) ProtoMessage()
- func (x *UserVerifyReq) ProtoReflect() protoreflect.Message
- func (x *UserVerifyReq) Reset()
- func (x *UserVerifyReq) String() string
Constants ¶
This section is empty.
Variables ¶
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)
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.
func NewEmailServiceClient ¶
func NewEmailServiceClient(cc grpc.ClientConnInterface) EmailServiceClient
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
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) GetMessage ¶
func (*HttpError) GetStatusCode ¶
func (*HttpError) ProtoMessage ¶
func (*HttpError) ProtoMessage()
func (*HttpError) ProtoReflect ¶
func (x *HttpError) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
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) SendNotification(context.Context, *NotificationData) (*Response, error)
func (UnimplementedEmailServiceServer) SendVerifcation ¶
func (UnimplementedEmailServiceServer) SendVerifcation(context.Context, *UserVerifyReq) (*Response, 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.
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 (*UserVerifyReq) GetLink ¶
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