Documentation
¶
Index ¶
- Variables
- func RegisterEmailServer(s *grpc.Server, srv EmailServer)
- type EmailClient
- type EmailServer
- type SendConfirmRequest
- func (*SendConfirmRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendConfirmRequest) GetEmail() string
- func (x *SendConfirmRequest) GetToken() string
- func (x *SendConfirmRequest) GetUsername() string
- func (*SendConfirmRequest) ProtoMessage()
- func (x *SendConfirmRequest) ProtoReflect() protoreflect.Message
- func (x *SendConfirmRequest) Reset()
- func (x *SendConfirmRequest) String() string
- type SendConfirmResponse
- type SendPasswordResetRequest
- func (*SendPasswordResetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendPasswordResetRequest) GetEmail() string
- func (x *SendPasswordResetRequest) GetToken() string
- func (x *SendPasswordResetRequest) GetUsername() string
- func (*SendPasswordResetRequest) ProtoMessage()
- func (x *SendPasswordResetRequest) ProtoReflect() protoreflect.Message
- func (x *SendPasswordResetRequest) Reset()
- func (x *SendPasswordResetRequest) String() string
- type SendPasswordResetResponse
- type UnimplementedEmailServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_internal_email_pb_email_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEmailServer ¶
func RegisterEmailServer(s *grpc.Server, srv EmailServer)
Types ¶
type EmailClient ¶
type EmailClient interface { // SendConfirm sends an email containing a confirmation link where the user can verify their email address. SendConfirm(ctx context.Context, in *SendConfirmRequest, opts ...grpc.CallOption) (*SendConfirmResponse, error) // SendPasswordReset sends an email containing a link where the user can reset their password SendPasswordReset(ctx context.Context, in *SendPasswordResetRequest, opts ...grpc.CallOption) (*SendPasswordResetResponse, error) }
EmailClient is the client API for Email service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEmailClient ¶
func NewEmailClient(cc grpc.ClientConnInterface) EmailClient
type EmailServer ¶
type EmailServer interface { // SendConfirm sends an email containing a confirmation link where the user can verify their email address. SendConfirm(context.Context, *SendConfirmRequest) (*SendConfirmResponse, error) // SendPasswordReset sends an email containing a link where the user can reset their password SendPasswordReset(context.Context, *SendPasswordResetRequest) (*SendPasswordResetResponse, error) }
EmailServer is the server API for Email service.
type SendConfirmRequest ¶
type SendConfirmRequest struct { // The email address Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // Username for the email header. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // A jwt token that is only usable once Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*SendConfirmRequest) Descriptor
deprecated
func (*SendConfirmRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendConfirmRequest.ProtoReflect.Descriptor instead.
func (*SendConfirmRequest) GetEmail ¶
func (x *SendConfirmRequest) GetEmail() string
func (*SendConfirmRequest) GetToken ¶
func (x *SendConfirmRequest) GetToken() string
func (*SendConfirmRequest) GetUsername ¶
func (x *SendConfirmRequest) GetUsername() string
func (*SendConfirmRequest) ProtoMessage ¶
func (*SendConfirmRequest) ProtoMessage()
func (*SendConfirmRequest) ProtoReflect ¶
func (x *SendConfirmRequest) ProtoReflect() protoreflect.Message
func (*SendConfirmRequest) Reset ¶
func (x *SendConfirmRequest) Reset()
func (*SendConfirmRequest) String ¶
func (x *SendConfirmRequest) String() string
type SendConfirmResponse ¶
type SendConfirmResponse struct {
// contains filtered or unexported fields
}
func (*SendConfirmResponse) Descriptor
deprecated
func (*SendConfirmResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendConfirmResponse.ProtoReflect.Descriptor instead.
func (*SendConfirmResponse) ProtoMessage ¶
func (*SendConfirmResponse) ProtoMessage()
func (*SendConfirmResponse) ProtoReflect ¶
func (x *SendConfirmResponse) ProtoReflect() protoreflect.Message
func (*SendConfirmResponse) Reset ¶
func (x *SendConfirmResponse) Reset()
func (*SendConfirmResponse) String ¶
func (x *SendConfirmResponse) String() string
type SendPasswordResetRequest ¶
type SendPasswordResetRequest struct { // The email address Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // Username for the email header. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // A jwt token that is only usable once Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*SendPasswordResetRequest) Descriptor
deprecated
func (*SendPasswordResetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendPasswordResetRequest.ProtoReflect.Descriptor instead.
func (*SendPasswordResetRequest) GetEmail ¶
func (x *SendPasswordResetRequest) GetEmail() string
func (*SendPasswordResetRequest) GetToken ¶
func (x *SendPasswordResetRequest) GetToken() string
func (*SendPasswordResetRequest) GetUsername ¶
func (x *SendPasswordResetRequest) GetUsername() string
func (*SendPasswordResetRequest) ProtoMessage ¶
func (*SendPasswordResetRequest) ProtoMessage()
func (*SendPasswordResetRequest) ProtoReflect ¶
func (x *SendPasswordResetRequest) ProtoReflect() protoreflect.Message
func (*SendPasswordResetRequest) Reset ¶
func (x *SendPasswordResetRequest) Reset()
func (*SendPasswordResetRequest) String ¶
func (x *SendPasswordResetRequest) String() string
type SendPasswordResetResponse ¶
type SendPasswordResetResponse struct {
// contains filtered or unexported fields
}
func (*SendPasswordResetResponse) Descriptor
deprecated
func (*SendPasswordResetResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendPasswordResetResponse.ProtoReflect.Descriptor instead.
func (*SendPasswordResetResponse) ProtoMessage ¶
func (*SendPasswordResetResponse) ProtoMessage()
func (*SendPasswordResetResponse) ProtoReflect ¶
func (x *SendPasswordResetResponse) ProtoReflect() protoreflect.Message
func (*SendPasswordResetResponse) Reset ¶
func (x *SendPasswordResetResponse) Reset()
func (*SendPasswordResetResponse) String ¶
func (x *SendPasswordResetResponse) String() string
type UnimplementedEmailServer ¶
type UnimplementedEmailServer struct { }
UnimplementedEmailServer can be embedded to have forward compatible implementations.
func (*UnimplementedEmailServer) SendConfirm ¶
func (*UnimplementedEmailServer) SendConfirm(context.Context, *SendConfirmRequest) (*SendConfirmResponse, error)
func (*UnimplementedEmailServer) SendPasswordReset ¶
func (*UnimplementedEmailServer) SendPasswordReset(context.Context, *SendPasswordResetRequest) (*SendPasswordResetResponse, error)
Click to show internal directories.
Click to hide internal directories.