notificationpb

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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.

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 (*SendEmailVerificationRequest) Reset

func (x *SendEmailVerificationRequest) Reset()

func (*SendEmailVerificationRequest) 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 (*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) SendSMSVerification

func (*UnimplementedNotificationServiceServer) UpdateFirebaseToken added in v0.13.0

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 (*UpdateFirebaseTokenRequest) Reset added in v0.13.0

func (x *UpdateFirebaseTokenRequest) Reset()

func (*UpdateFirebaseTokenRequest) String added in v0.13.0

func (x *UpdateFirebaseTokenRequest) String() string

Jump to

Keyboard shortcuts

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