notifications

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmailsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "emails.EmailsService",
	HandlerType: (*EmailsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserEmailCommunications",
			Handler:    _EmailsService_GetUserEmailCommunications_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "notifications/emails.proto",
}

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

View Source
var File_notifications_emails_proto protoreflect.FileDescriptor

Functions

func RegisterEmailsServiceServer

func RegisterEmailsServiceServer(s grpc.ServiceRegistrar, srv EmailsServiceServer)

Types

type Email

type Email struct {
	ID      uint64                 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	UserID  uint64                 `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"`
	Email   string                 `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Content string                 `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	SentAt  *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=sentAt,proto3" json:"sentAt,omitempty"`
	// contains filtered or unexported fields
}

func (*Email) Descriptor deprecated

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

Deprecated: Use Email.ProtoReflect.Descriptor instead.

func (*Email) GetContent

func (x *Email) GetContent() string

func (*Email) GetEmail

func (x *Email) GetEmail() string

func (*Email) GetID

func (x *Email) GetID() uint64

func (*Email) GetSentAt

func (x *Email) GetSentAt() *timestamppb.Timestamp

func (*Email) GetUserID

func (x *Email) GetUserID() uint64

func (*Email) ProtoMessage

func (*Email) ProtoMessage()

func (*Email) ProtoReflect

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

func (*Email) Reset

func (x *Email) Reset()

func (*Email) String

func (x *Email) String() string

type EmailsServiceClient

type EmailsServiceClient interface {
	GetUserEmailCommunications(ctx context.Context, in *GetUserEmailCommunicationsIn, opts ...grpc.CallOption) (*GetUserEmailCommunicationsOut, error)
}

EmailsServiceClient is the client API for EmailsService 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 EmailsServiceServer

type EmailsServiceServer interface {
	GetUserEmailCommunications(context.Context, *GetUserEmailCommunicationsIn) (*GetUserEmailCommunicationsOut, error)
	// contains filtered or unexported methods
}

EmailsServiceServer is the server API for EmailsService service. All implementations must embed UnimplementedEmailsServiceServer for forward compatibility

type GetUserEmailCommunicationsIn

type GetUserEmailCommunicationsIn struct {
	UserID uint64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserEmailCommunicationsIn) Descriptor deprecated

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

Deprecated: Use GetUserEmailCommunicationsIn.ProtoReflect.Descriptor instead.

func (*GetUserEmailCommunicationsIn) GetUserID

func (x *GetUserEmailCommunicationsIn) GetUserID() uint64

func (*GetUserEmailCommunicationsIn) ProtoMessage

func (*GetUserEmailCommunicationsIn) ProtoMessage()

func (*GetUserEmailCommunicationsIn) ProtoReflect

func (*GetUserEmailCommunicationsIn) Reset

func (x *GetUserEmailCommunicationsIn) Reset()

func (*GetUserEmailCommunicationsIn) String

type GetUserEmailCommunicationsOut

type GetUserEmailCommunicationsOut struct {
	Emails []*Email `protobuf:"bytes,1,rep,name=emails,proto3" json:"emails,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserEmailCommunicationsOut) Descriptor deprecated

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

Deprecated: Use GetUserEmailCommunicationsOut.ProtoReflect.Descriptor instead.

func (*GetUserEmailCommunicationsOut) GetEmails

func (x *GetUserEmailCommunicationsOut) GetEmails() []*Email

func (*GetUserEmailCommunicationsOut) ProtoMessage

func (*GetUserEmailCommunicationsOut) ProtoMessage()

func (*GetUserEmailCommunicationsOut) ProtoReflect

func (*GetUserEmailCommunicationsOut) Reset

func (x *GetUserEmailCommunicationsOut) Reset()

func (*GetUserEmailCommunicationsOut) String

type UnimplementedEmailsServiceServer

type UnimplementedEmailsServiceServer struct {
}

UnimplementedEmailsServiceServer must be embedded to have forward compatible implementations.

type UnsafeEmailsServiceServer

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

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

Jump to

Keyboard shortcuts

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