Documentation
¶
Index ¶
- Variables
- func RegisterNotificationServiceServer(s *grpc.Server, srv NotificationServiceServer)
- type NotificationServiceClient
- type NotificationServiceServer
- type SendEmailVerificationRequest
- func (*SendEmailVerificationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendEmailVerificationRequest) GetCode() string
- func (x *SendEmailVerificationRequest) GetEmail() string
- func (*SendEmailVerificationRequest) ProtoMessage()
- func (x *SendEmailVerificationRequest) ProtoReflect() protoreflect.Message
- func (x *SendEmailVerificationRequest) Reset()
- func (x *SendEmailVerificationRequest) String() string
- type SendSMSVerificationRequest
- func (*SendSMSVerificationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendSMSVerificationRequest) GetCode() string
- func (x *SendSMSVerificationRequest) GetPhoneNumber() string
- func (*SendSMSVerificationRequest) ProtoMessage()
- func (x *SendSMSVerificationRequest) ProtoReflect() protoreflect.Message
- func (x *SendSMSVerificationRequest) Reset()
- func (x *SendSMSVerificationRequest) String() string
- type UnimplementedNotificationServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_protobuf_spec_notification_notification_v1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterNotificationServiceServer ¶
func RegisterNotificationServiceServer(s *grpc.Server, srv NotificationServiceServer)
Types ¶
type NotificationServiceClient ¶
type NotificationServiceClient interface { SendEmailVerification(ctx context.Context, in *SendEmailVerificationRequest, opts ...grpc.CallOption) (*empty.Empty, error) SendSMSVerification(ctx context.Context, in *SendSMSVerificationRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
NotificationServiceClient is the client API for NotificationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNotificationServiceClient ¶
func NewNotificationServiceClient(cc grpc.ClientConnInterface) NotificationServiceClient
type NotificationServiceServer ¶
type NotificationServiceServer interface { SendEmailVerification(context.Context, *SendEmailVerificationRequest) (*empty.Empty, error) SendSMSVerification(context.Context, *SendSMSVerificationRequest) (*empty.Empty, error) }
NotificationServiceServer is the server API for NotificationService service.
type SendEmailVerificationRequest ¶
type SendEmailVerificationRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*SendEmailVerificationRequest) Descriptor
deprecated
func (*SendEmailVerificationRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendEmailVerificationRequest.ProtoReflect.Descriptor instead.
func (*SendEmailVerificationRequest) GetCode ¶
func (x *SendEmailVerificationRequest) GetCode() string
func (*SendEmailVerificationRequest) GetEmail ¶
func (x *SendEmailVerificationRequest) GetEmail() string
func (*SendEmailVerificationRequest) ProtoMessage ¶
func (*SendEmailVerificationRequest) ProtoMessage()
func (*SendEmailVerificationRequest) ProtoReflect ¶
func (x *SendEmailVerificationRequest) ProtoReflect() protoreflect.Message
func (*SendEmailVerificationRequest) Reset ¶
func (x *SendEmailVerificationRequest) Reset()
func (*SendEmailVerificationRequest) String ¶
func (x *SendEmailVerificationRequest) String() string
type SendSMSVerificationRequest ¶
type SendSMSVerificationRequest struct { PhoneNumber string `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*SendSMSVerificationRequest) Descriptor
deprecated
func (*SendSMSVerificationRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendSMSVerificationRequest.ProtoReflect.Descriptor instead.
func (*SendSMSVerificationRequest) GetCode ¶
func (x *SendSMSVerificationRequest) GetCode() string
func (*SendSMSVerificationRequest) GetPhoneNumber ¶
func (x *SendSMSVerificationRequest) GetPhoneNumber() string
func (*SendSMSVerificationRequest) ProtoMessage ¶
func (*SendSMSVerificationRequest) ProtoMessage()
func (*SendSMSVerificationRequest) ProtoReflect ¶
func (x *SendSMSVerificationRequest) ProtoReflect() protoreflect.Message
func (*SendSMSVerificationRequest) Reset ¶
func (x *SendSMSVerificationRequest) Reset()
func (*SendSMSVerificationRequest) String ¶
func (x *SendSMSVerificationRequest) String() string
type UnimplementedNotificationServiceServer ¶
type UnimplementedNotificationServiceServer struct { }
UnimplementedNotificationServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedNotificationServiceServer) SendEmailVerification ¶
func (*UnimplementedNotificationServiceServer) SendEmailVerification(context.Context, *SendEmailVerificationRequest) (*empty.Empty, error)
func (*UnimplementedNotificationServiceServer) SendSMSVerification ¶
func (*UnimplementedNotificationServiceServer) SendSMSVerification(context.Context, *SendSMSVerificationRequest) (*empty.Empty, error)
Click to show internal directories.
Click to hide internal directories.