notification

package
v0.0.0-...-a2883fb Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotificationServices_CreateDeviceToken_FullMethodName = "/notification.NotificationServices/CreateDeviceToken"
	NotificationServices_SendNotification_FullMethodName  = "/notification.NotificationServices/SendNotification"
)

Variables

View Source
var File_notification_notification_proto protoreflect.FileDescriptor
View Source
var NotificationServices_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "notification.NotificationServices",
	HandlerType: (*NotificationServicesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateDeviceToken",
			Handler:    _NotificationServices_CreateDeviceToken_Handler,
		},
		{
			MethodName: "SendNotification",
			Handler:    _NotificationServices_SendNotification_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "notification/notification.proto",
}

NotificationServices_ServiceDesc is the grpc.ServiceDesc for NotificationServices service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterNotificationServicesServer

func RegisterNotificationServicesServer(s grpc.ServiceRegistrar, srv NotificationServicesServer)

Types

type CreateDeviceTokenRequest

type CreateDeviceTokenRequest struct {
	Data *DeviceToken `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDeviceTokenRequest) Descriptor deprecated

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

Deprecated: Use CreateDeviceTokenRequest.ProtoReflect.Descriptor instead.

func (*CreateDeviceTokenRequest) GetData

func (x *CreateDeviceTokenRequest) GetData() *DeviceToken

func (*CreateDeviceTokenRequest) ProtoMessage

func (*CreateDeviceTokenRequest) ProtoMessage()

func (*CreateDeviceTokenRequest) ProtoReflect

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

func (*CreateDeviceTokenRequest) Reset

func (x *CreateDeviceTokenRequest) Reset()

func (*CreateDeviceTokenRequest) String

func (x *CreateDeviceTokenRequest) String() string

type DeviceToken

type DeviceToken struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId    string                 `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Token     string                 `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	OsName    string                 `protobuf:"bytes,4,opt,name=os_name,json=osName,proto3" json:"os_name,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceToken) Descriptor deprecated

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

Deprecated: Use DeviceToken.ProtoReflect.Descriptor instead.

func (*DeviceToken) GetCreatedAt

func (x *DeviceToken) GetCreatedAt() *timestamppb.Timestamp

func (*DeviceToken) GetId

func (x *DeviceToken) GetId() string

func (*DeviceToken) GetOsName

func (x *DeviceToken) GetOsName() string

func (*DeviceToken) GetToken

func (x *DeviceToken) GetToken() string

func (*DeviceToken) GetUpdatedAt

func (x *DeviceToken) GetUpdatedAt() *timestamppb.Timestamp

func (*DeviceToken) GetUserId

func (x *DeviceToken) GetUserId() string

func (*DeviceToken) ProtoMessage

func (*DeviceToken) ProtoMessage()

func (*DeviceToken) ProtoReflect

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

func (*DeviceToken) Reset

func (x *DeviceToken) Reset()

func (*DeviceToken) String

func (x *DeviceToken) String() string

type NotificationServicesClient

type NotificationServicesClient interface {
	CreateDeviceToken(ctx context.Context, in *CreateDeviceTokenRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SendNotification(ctx context.Context, in *SendNotificationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

NotificationServicesClient is the client API for NotificationServices 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.

type NotificationServicesServer

type NotificationServicesServer interface {
	CreateDeviceToken(context.Context, *CreateDeviceTokenRequest) (*emptypb.Empty, error)
	SendNotification(context.Context, *SendNotificationRequest) (*emptypb.Empty, error)
}

NotificationServicesServer is the server API for NotificationServices service. All implementations should embed UnimplementedNotificationServicesServer for forward compatibility

type SendNotificationRequest

type SendNotificationRequest struct {
	Data *SendParams `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SendNotificationRequest) Descriptor deprecated

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

Deprecated: Use SendNotificationRequest.ProtoReflect.Descriptor instead.

func (*SendNotificationRequest) GetData

func (x *SendNotificationRequest) GetData() *SendParams

func (*SendNotificationRequest) ProtoMessage

func (*SendNotificationRequest) ProtoMessage()

func (*SendNotificationRequest) ProtoReflect

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

func (*SendNotificationRequest) Reset

func (x *SendNotificationRequest) Reset()

func (*SendNotificationRequest) String

func (x *SendNotificationRequest) String() string

type SendParams

type SendParams struct {
	UserId    string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Type      string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Data      string   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	Services  []string `protobuf:"bytes,4,rep,name=services,proto3" json:"services,omitempty"`
	PathEmail string   `protobuf:"bytes,5,opt,name=path_email,json=pathEmail,proto3" json:"path_email,omitempty"`
	// contains filtered or unexported fields
}

func (*SendParams) Descriptor deprecated

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

Deprecated: Use SendParams.ProtoReflect.Descriptor instead.

func (*SendParams) GetData

func (x *SendParams) GetData() string

func (*SendParams) GetPathEmail

func (x *SendParams) GetPathEmail() string

func (*SendParams) GetServices

func (x *SendParams) GetServices() []string

func (*SendParams) GetType

func (x *SendParams) GetType() string

func (*SendParams) GetUserId

func (x *SendParams) GetUserId() string

func (*SendParams) ProtoMessage

func (*SendParams) ProtoMessage()

func (*SendParams) ProtoReflect

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

func (*SendParams) Reset

func (x *SendParams) Reset()

func (*SendParams) String

func (x *SendParams) String() string

type UnimplementedNotificationServicesServer

type UnimplementedNotificationServicesServer struct {
}

UnimplementedNotificationServicesServer should be embedded to have forward compatible implementations.

func (UnimplementedNotificationServicesServer) CreateDeviceToken

func (UnimplementedNotificationServicesServer) SendNotification

type UnsafeNotificationServicesServer

type UnsafeNotificationServicesServer interface {
	// contains filtered or unexported methods
}

UnsafeNotificationServicesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotificationServicesServer will result in compilation errors.

Jump to

Keyboard shortcuts

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