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
- func (*UnimplementedNotificationServiceServer) SendEmailVerification(context.Context, *SendEmailVerificationRequest) (*empty.Empty, error)
- func (*UnimplementedNotificationServiceServer) SendSMSVerification(context.Context, *SendSMSVerificationRequest) (*empty.Empty, error)
- func (*UnimplementedNotificationServiceServer) UpdateFirebaseToken(context.Context, *UpdateFirebaseTokenRequest) (*empty.Empty, error)
- type UpdateFirebaseTokenRequest
- func (*UpdateFirebaseTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateFirebaseTokenRequest) GetToken() string
- func (x *UpdateFirebaseTokenRequest) GetUserId() string
- func (*UpdateFirebaseTokenRequest) ProtoMessage()
- func (x *UpdateFirebaseTokenRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateFirebaseTokenRequest) Reset()
- func (x *UpdateFirebaseTokenRequest) String() string
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) UpdateFirebaseToken(ctx context.Context, in *UpdateFirebaseTokenRequest, 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) UpdateFirebaseToken(context.Context, *UpdateFirebaseTokenRequest) (*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)
func (*UnimplementedNotificationServiceServer) UpdateFirebaseToken ¶ added in v0.13.0
func (*UnimplementedNotificationServiceServer) UpdateFirebaseToken(context.Context, *UpdateFirebaseTokenRequest) (*empty.Empty, error)
type UpdateFirebaseTokenRequest ¶ added in v0.13.0
type UpdateFirebaseTokenRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*UpdateFirebaseTokenRequest) Descriptor
deprecated
added in
v0.13.0
func (*UpdateFirebaseTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFirebaseTokenRequest.ProtoReflect.Descriptor instead.
func (*UpdateFirebaseTokenRequest) GetToken ¶ added in v0.13.0
func (x *UpdateFirebaseTokenRequest) GetToken() string
func (*UpdateFirebaseTokenRequest) GetUserId ¶ added in v0.13.0
func (x *UpdateFirebaseTokenRequest) GetUserId() string
func (*UpdateFirebaseTokenRequest) ProtoMessage ¶ added in v0.13.0
func (*UpdateFirebaseTokenRequest) ProtoMessage()
func (*UpdateFirebaseTokenRequest) ProtoReflect ¶ added in v0.13.0
func (x *UpdateFirebaseTokenRequest) ProtoReflect() protoreflect.Message
func (*UpdateFirebaseTokenRequest) Reset ¶ added in v0.13.0
func (x *UpdateFirebaseTokenRequest) Reset()
func (*UpdateFirebaseTokenRequest) String ¶ added in v0.13.0
func (x *UpdateFirebaseTokenRequest) String() string
Click to show internal directories.
Click to hide internal directories.