notificationpb

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 12 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 Action added in v0.16.4

type Action struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Action    string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	IsPrimary bool   `protobuf:"varint,3,opt,name=isPrimary,proto3" json:"isPrimary,omitempty"`
	// contains filtered or unexported fields
}

func (*Action) Descriptor deprecated added in v0.16.4

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

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetAction added in v0.16.4

func (x *Action) GetAction() string

func (*Action) GetIsPrimary added in v1.6.1

func (x *Action) GetIsPrimary() bool

func (*Action) GetName added in v0.16.4

func (x *Action) GetName() string

func (*Action) ProtoMessage added in v0.16.4

func (*Action) ProtoMessage()

func (*Action) ProtoReflect added in v0.16.4

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

func (*Action) Reset added in v0.16.4

func (x *Action) Reset()

func (*Action) String added in v0.16.4

func (x *Action) String() string

type GetNotificationsRequest added in v0.16.1

type GetNotificationsRequest struct {
	NotificationIds []string `protobuf:"bytes,1,rep,name=notification_ids,json=notificationIds,proto3" json:"notification_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNotificationsRequest) Descriptor deprecated added in v0.16.1

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

Deprecated: Use GetNotificationsRequest.ProtoReflect.Descriptor instead.

func (*GetNotificationsRequest) GetNotificationIds added in v0.16.1

func (x *GetNotificationsRequest) GetNotificationIds() []string

func (*GetNotificationsRequest) ProtoMessage added in v0.16.1

func (*GetNotificationsRequest) ProtoMessage()

func (*GetNotificationsRequest) ProtoReflect added in v0.16.1

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

func (*GetNotificationsRequest) Reset added in v0.16.1

func (x *GetNotificationsRequest) Reset()

func (*GetNotificationsRequest) String added in v0.16.1

func (x *GetNotificationsRequest) String() string

type GetNotificationsResponse added in v0.16.1

type GetNotificationsResponse struct {
	Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNotificationsResponse) Descriptor deprecated added in v0.16.1

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

Deprecated: Use GetNotificationsResponse.ProtoReflect.Descriptor instead.

func (*GetNotificationsResponse) GetNotifications added in v0.16.1

func (x *GetNotificationsResponse) GetNotifications() []*Notification

func (*GetNotificationsResponse) ProtoMessage added in v0.16.1

func (*GetNotificationsResponse) ProtoMessage()

func (*GetNotificationsResponse) ProtoReflect added in v0.16.1

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

func (*GetNotificationsResponse) Reset added in v0.16.1

func (x *GetNotificationsResponse) Reset()

func (*GetNotificationsResponse) String added in v0.16.1

func (x *GetNotificationsResponse) String() string

type GetUserNotificationRequest added in v0.16.1

type GetUserNotificationRequest struct {
	UserId     string                `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Category   string                `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
	Pagination *generalpb.Pagination `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserNotificationRequest) Descriptor deprecated added in v0.16.1

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

Deprecated: Use GetUserNotificationRequest.ProtoReflect.Descriptor instead.

func (*GetUserNotificationRequest) GetCategory added in v1.31.1

func (x *GetUserNotificationRequest) GetCategory() string

func (*GetUserNotificationRequest) GetPagination added in v1.32.0

func (x *GetUserNotificationRequest) GetPagination() *generalpb.Pagination

func (*GetUserNotificationRequest) GetUserId added in v0.16.1

func (x *GetUserNotificationRequest) GetUserId() string

func (*GetUserNotificationRequest) ProtoMessage added in v0.16.1

func (*GetUserNotificationRequest) ProtoMessage()

func (*GetUserNotificationRequest) ProtoReflect added in v0.16.1

func (*GetUserNotificationRequest) Reset added in v0.16.1

func (x *GetUserNotificationRequest) Reset()

func (*GetUserNotificationRequest) String added in v0.16.1

func (x *GetUserNotificationRequest) String() string

type GetUserNotificationResponse added in v0.16.1

type GetUserNotificationResponse struct {
	Connection []*UserNotificationConnection `protobuf:"bytes,1,rep,name=connection,proto3" json:"connection,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserNotificationResponse) Descriptor deprecated added in v0.16.1

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

Deprecated: Use GetUserNotificationResponse.ProtoReflect.Descriptor instead.

func (*GetUserNotificationResponse) GetConnection added in v0.17.0

func (*GetUserNotificationResponse) ProtoMessage added in v0.16.1

func (*GetUserNotificationResponse) ProtoMessage()

func (*GetUserNotificationResponse) ProtoReflect added in v0.16.1

func (*GetUserNotificationResponse) Reset added in v0.16.1

func (x *GetUserNotificationResponse) Reset()

func (*GetUserNotificationResponse) String added in v0.16.1

func (x *GetUserNotificationResponse) String() string

type MarNotificationAsActedRequest added in v0.16.1

type MarNotificationAsActedRequest struct {
	NotificationId string `protobuf:"bytes,1,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"`
	Action         string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	UserId         string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MarNotificationAsActedRequest) Descriptor deprecated added in v0.16.1

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

Deprecated: Use MarNotificationAsActedRequest.ProtoReflect.Descriptor instead.

func (*MarNotificationAsActedRequest) GetAction added in v0.16.2

func (x *MarNotificationAsActedRequest) GetAction() string

func (*MarNotificationAsActedRequest) GetNotificationId added in v0.16.1

func (x *MarNotificationAsActedRequest) GetNotificationId() string

func (*MarNotificationAsActedRequest) GetUserId added in v0.17.0

func (x *MarNotificationAsActedRequest) GetUserId() string

func (*MarNotificationAsActedRequest) ProtoMessage added in v0.16.1

func (*MarNotificationAsActedRequest) ProtoMessage()

func (*MarNotificationAsActedRequest) ProtoReflect added in v0.16.1

func (*MarNotificationAsActedRequest) Reset added in v0.16.1

func (x *MarNotificationAsActedRequest) Reset()

func (*MarNotificationAsActedRequest) String added in v0.16.1

type MarNotificationAsReadRequest added in v0.16.1

type MarNotificationAsReadRequest struct {
	NotificationId string `protobuf:"bytes,1,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"`
	UserId         string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MarNotificationAsReadRequest) Descriptor deprecated added in v0.16.1

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

Deprecated: Use MarNotificationAsReadRequest.ProtoReflect.Descriptor instead.

func (*MarNotificationAsReadRequest) GetNotificationId added in v0.16.1

func (x *MarNotificationAsReadRequest) GetNotificationId() string

func (*MarNotificationAsReadRequest) GetUserId added in v0.17.0

func (x *MarNotificationAsReadRequest) GetUserId() string

func (*MarNotificationAsReadRequest) ProtoMessage added in v0.16.1

func (*MarNotificationAsReadRequest) ProtoMessage()

func (*MarNotificationAsReadRequest) ProtoReflect added in v0.16.1

func (*MarNotificationAsReadRequest) Reset added in v0.16.1

func (x *MarNotificationAsReadRequest) Reset()

func (*MarNotificationAsReadRequest) String added in v0.16.1

type Notification added in v0.16.1

type Notification struct {
	Id         string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Avatar     string               `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"`
	AvatarType string               `protobuf:"bytes,3,opt,name=avatar_type,json=avatarType,proto3" json:"avatar_type,omitempty"`
	Body       string               `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	Title      string               `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	Data       []byte               `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
	Topic      string               `protobuf:"bytes,7,opt,name=topic,proto3" json:"topic,omitempty"`
	Actions    []*Action            `protobuf:"bytes,9,rep,name=actions,proto3" json:"actions,omitempty"`
	Created    *timestamp.Timestamp `protobuf:"bytes,10,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (*Notification) Descriptor deprecated added in v0.16.1

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

Deprecated: Use Notification.ProtoReflect.Descriptor instead.

func (*Notification) GetActions added in v0.16.4

func (x *Notification) GetActions() []*Action

func (*Notification) GetAvatar added in v0.16.1

func (x *Notification) GetAvatar() string

func (*Notification) GetAvatarType added in v0.16.1

func (x *Notification) GetAvatarType() string

func (*Notification) GetBody added in v0.16.1

func (x *Notification) GetBody() string

func (*Notification) GetCreated added in v0.17.0

func (x *Notification) GetCreated() *timestamp.Timestamp

func (*Notification) GetData added in v0.16.1

func (x *Notification) GetData() []byte

func (*Notification) GetId added in v0.16.1

func (x *Notification) GetId() string

func (*Notification) GetTitle added in v0.16.1

func (x *Notification) GetTitle() string

func (*Notification) GetTopic added in v0.16.1

func (x *Notification) GetTopic() string

func (*Notification) ProtoMessage added in v0.16.1

func (*Notification) ProtoMessage()

func (*Notification) ProtoReflect added in v0.16.1

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

func (*Notification) Reset added in v0.16.1

func (x *Notification) Reset()

func (*Notification) String added in v0.16.1

func (x *Notification) String() string

type NotificationServiceClient

type NotificationServiceClient interface {
	ResetNotificationCounter(ctx context.Context, in *ResetNotificationCounterRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	SendPasswordForgotEmail(ctx context.Context, in *SendPasswordForgotEmailRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	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)
	GetUserNotifications(ctx context.Context, in *GetUserNotificationRequest, opts ...grpc.CallOption) (*GetUserNotificationResponse, error)
	GetNotifications(ctx context.Context, in *GetNotificationsRequest, opts ...grpc.CallOption) (*GetNotificationsResponse, error)
	MarNotificationAsRead(ctx context.Context, in *MarNotificationAsReadRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	RunNotificationAction(ctx context.Context, in *MarNotificationAsActedRequest, 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

NotificationServiceServer is the server API for NotificationService service.

type ResetNotificationCounterRequest added in v1.35.0

type ResetNotificationCounterRequest struct {
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetNotificationCounterRequest) Descriptor deprecated added in v1.35.0

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

Deprecated: Use ResetNotificationCounterRequest.ProtoReflect.Descriptor instead.

func (*ResetNotificationCounterRequest) GetUserId added in v1.35.0

func (x *ResetNotificationCounterRequest) GetUserId() string

func (*ResetNotificationCounterRequest) ProtoMessage added in v1.35.0

func (*ResetNotificationCounterRequest) ProtoMessage()

func (*ResetNotificationCounterRequest) ProtoReflect added in v1.35.0

func (*ResetNotificationCounterRequest) Reset added in v1.35.0

func (*ResetNotificationCounterRequest) String added in v1.35.0

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 SendPasswordForgotEmailRequest added in v1.43.0

type SendPasswordForgotEmailRequest struct {
	Email     string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Token     string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	// contains filtered or unexported fields
}

func (*SendPasswordForgotEmailRequest) Descriptor deprecated added in v1.43.0

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

Deprecated: Use SendPasswordForgotEmailRequest.ProtoReflect.Descriptor instead.

func (*SendPasswordForgotEmailRequest) GetEmail added in v1.43.0

func (x *SendPasswordForgotEmailRequest) GetEmail() string

func (*SendPasswordForgotEmailRequest) GetFirstName added in v1.46.0

func (x *SendPasswordForgotEmailRequest) GetFirstName() string

func (*SendPasswordForgotEmailRequest) GetToken added in v1.43.0

func (x *SendPasswordForgotEmailRequest) GetToken() string

func (*SendPasswordForgotEmailRequest) ProtoMessage added in v1.43.0

func (*SendPasswordForgotEmailRequest) ProtoMessage()

func (*SendPasswordForgotEmailRequest) ProtoReflect added in v1.43.0

func (*SendPasswordForgotEmailRequest) Reset added in v1.43.0

func (x *SendPasswordForgotEmailRequest) Reset()

func (*SendPasswordForgotEmailRequest) String added in v1.43.0

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) GetNotifications added in v0.16.1

func (*UnimplementedNotificationServiceServer) GetUserNotifications added in v0.16.1

func (*UnimplementedNotificationServiceServer) MarNotificationAsRead added in v0.16.1

func (*UnimplementedNotificationServiceServer) ResetNotificationCounter added in v1.35.0

func (*UnimplementedNotificationServiceServer) RunNotificationAction added in v0.16.2

func (*UnimplementedNotificationServiceServer) SendEmailVerification

func (*UnimplementedNotificationServiceServer) SendPasswordForgotEmail added in v1.43.0

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

type UserNotificationConnection added in v0.17.0

type UserNotificationConnection struct {
	Read           bool   `protobuf:"varint,1,opt,name=read,proto3" json:"read,omitempty"`
	NotificationId string `protobuf:"bytes,2,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"`
	Cursor         string `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

func (*UserNotificationConnection) Descriptor deprecated added in v0.17.0

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

Deprecated: Use UserNotificationConnection.ProtoReflect.Descriptor instead.

func (*UserNotificationConnection) GetCursor added in v1.32.1

func (x *UserNotificationConnection) GetCursor() string

func (*UserNotificationConnection) GetNotificationId added in v0.17.0

func (x *UserNotificationConnection) GetNotificationId() string

func (*UserNotificationConnection) GetRead added in v0.17.0

func (x *UserNotificationConnection) GetRead() bool

func (*UserNotificationConnection) ProtoMessage added in v0.17.0

func (*UserNotificationConnection) ProtoMessage()

func (*UserNotificationConnection) ProtoReflect added in v0.17.0

func (*UserNotificationConnection) Reset added in v0.17.0

func (x *UserNotificationConnection) Reset()

func (*UserNotificationConnection) String added in v0.17.0

func (x *UserNotificationConnection) String() string

Jump to

Keyboard shortcuts

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