pb

package
v0.0.0-...-54d1621 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 (*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) SendPasswordReset

Jump to

Keyboard shortcuts

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