Documentation
¶
Index ¶
- Variables
- func RegisterEmailsServiceServer(s grpc.ServiceRegistrar, srv EmailsServiceServer)
- type Email
- func (*Email) Descriptor() ([]byte, []int)deprecated
- func (x *Email) GetContent() string
- func (x *Email) GetEmail() string
- func (x *Email) GetID() uint64
- func (x *Email) GetSentAt() *timestamppb.Timestamp
- func (x *Email) GetUserID() uint64
- func (*Email) ProtoMessage()
- func (x *Email) ProtoReflect() protoreflect.Message
- func (x *Email) Reset()
- func (x *Email) String() string
- type EmailsServiceClient
- type EmailsServiceServer
- type GetUserEmailCommunicationsIn
- func (*GetUserEmailCommunicationsIn) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserEmailCommunicationsIn) GetUserID() uint64
- func (*GetUserEmailCommunicationsIn) ProtoMessage()
- func (x *GetUserEmailCommunicationsIn) ProtoReflect() protoreflect.Message
- func (x *GetUserEmailCommunicationsIn) Reset()
- func (x *GetUserEmailCommunicationsIn) String() string
- type GetUserEmailCommunicationsOut
- func (*GetUserEmailCommunicationsOut) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserEmailCommunicationsOut) GetEmails() []*Email
- func (*GetUserEmailCommunicationsOut) ProtoMessage()
- func (x *GetUserEmailCommunicationsOut) ProtoReflect() protoreflect.Message
- func (x *GetUserEmailCommunicationsOut) Reset()
- func (x *GetUserEmailCommunicationsOut) String() string
- type UnimplementedEmailsServiceServer
- type UnsafeEmailsServiceServer
Constants ¶
This section is empty.
Variables ¶
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)
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) GetContent ¶
func (*Email) GetSentAt ¶
func (x *Email) GetSentAt() *timestamppb.Timestamp
func (*Email) ProtoMessage ¶
func (*Email) ProtoMessage()
func (*Email) ProtoReflect ¶
func (x *Email) ProtoReflect() protoreflect.Message
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.
func NewEmailsServiceClient ¶
func NewEmailsServiceClient(cc grpc.ClientConnInterface) EmailsServiceClient
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 (x *GetUserEmailCommunicationsIn) ProtoReflect() protoreflect.Message
func (*GetUserEmailCommunicationsIn) Reset ¶
func (x *GetUserEmailCommunicationsIn) Reset()
func (*GetUserEmailCommunicationsIn) String ¶
func (x *GetUserEmailCommunicationsIn) String() 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 (x *GetUserEmailCommunicationsOut) ProtoReflect() protoreflect.Message
func (*GetUserEmailCommunicationsOut) Reset ¶
func (x *GetUserEmailCommunicationsOut) Reset()
func (*GetUserEmailCommunicationsOut) String ¶
func (x *GetUserEmailCommunicationsOut) String() string
type UnimplementedEmailsServiceServer ¶
type UnimplementedEmailsServiceServer struct { }
UnimplementedEmailsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedEmailsServiceServer) GetUserEmailCommunications ¶
func (UnimplementedEmailsServiceServer) GetUserEmailCommunications(context.Context, *GetUserEmailCommunicationsIn) (*GetUserEmailCommunicationsOut, error)
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.