email_verification_srv

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEmailVerificationHandler

func RegisterEmailVerificationHandler(s server.Server, hdlr EmailVerificationHandler, opts ...server.HandlerOption) error

Types

type EmailVerificationHandler

type EmailVerificationHandler interface {
	SendVerification(context.Context, *SendVerificationRequest, *SendVerificationResponse) error
	Verify(context.Context, *VerifyRequest, *VerifyResponse) error
}

type EmailVerificationService

type EmailVerificationService interface {
	SendVerification(ctx context.Context, in *SendVerificationRequest, opts ...client.CallOption) (*SendVerificationResponse, error)
	Verify(ctx context.Context, in *VerifyRequest, opts ...client.CallOption) (*VerifyResponse, error)
}

func NewEmailVerificationService

func NewEmailVerificationService(name string, c client.Client) EmailVerificationService

type SendVerificationRequest

type SendVerificationRequest struct {
	Email                string   `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendVerificationRequest) Descriptor

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

func (*SendVerificationRequest) GetEmail

func (m *SendVerificationRequest) GetEmail() string

func (*SendVerificationRequest) ProtoMessage

func (*SendVerificationRequest) ProtoMessage()

func (*SendVerificationRequest) Reset

func (m *SendVerificationRequest) Reset()

func (*SendVerificationRequest) String

func (m *SendVerificationRequest) String() string

func (*SendVerificationRequest) XXX_DiscardUnknown

func (m *SendVerificationRequest) XXX_DiscardUnknown()

func (*SendVerificationRequest) XXX_Marshal

func (m *SendVerificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SendVerificationRequest) XXX_Merge

func (m *SendVerificationRequest) XXX_Merge(src proto.Message)

func (*SendVerificationRequest) XXX_Size

func (m *SendVerificationRequest) XXX_Size() int

func (*SendVerificationRequest) XXX_Unmarshal

func (m *SendVerificationRequest) XXX_Unmarshal(b []byte) error

type SendVerificationResponse

type SendVerificationResponse struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendVerificationResponse) Descriptor

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

func (*SendVerificationResponse) GetMessage

func (m *SendVerificationResponse) GetMessage() string

func (*SendVerificationResponse) ProtoMessage

func (*SendVerificationResponse) ProtoMessage()

func (*SendVerificationResponse) Reset

func (m *SendVerificationResponse) Reset()

func (*SendVerificationResponse) String

func (m *SendVerificationResponse) String() string

func (*SendVerificationResponse) XXX_DiscardUnknown

func (m *SendVerificationResponse) XXX_DiscardUnknown()

func (*SendVerificationResponse) XXX_Marshal

func (m *SendVerificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SendVerificationResponse) XXX_Merge

func (m *SendVerificationResponse) XXX_Merge(src proto.Message)

func (*SendVerificationResponse) XXX_Size

func (m *SendVerificationResponse) XXX_Size() int

func (*SendVerificationResponse) XXX_Unmarshal

func (m *SendVerificationResponse) XXX_Unmarshal(b []byte) error

type VerifyRequest

type VerifyRequest struct {
	VerificationCode     string   `protobuf:"bytes,1,opt,name=verificationCode,proto3" json:"verificationCode,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VerifyRequest) Descriptor

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

func (*VerifyRequest) GetVerificationCode

func (m *VerifyRequest) GetVerificationCode() string

func (*VerifyRequest) ProtoMessage

func (*VerifyRequest) ProtoMessage()

func (*VerifyRequest) Reset

func (m *VerifyRequest) Reset()

func (*VerifyRequest) String

func (m *VerifyRequest) String() string

func (*VerifyRequest) XXX_DiscardUnknown

func (m *VerifyRequest) XXX_DiscardUnknown()

func (*VerifyRequest) XXX_Marshal

func (m *VerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerifyRequest) XXX_Merge

func (m *VerifyRequest) XXX_Merge(src proto.Message)

func (*VerifyRequest) XXX_Size

func (m *VerifyRequest) XXX_Size() int

func (*VerifyRequest) XXX_Unmarshal

func (m *VerifyRequest) XXX_Unmarshal(b []byte) error

type VerifyResponse

type VerifyResponse struct {
	Email                string   `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VerifyResponse) Descriptor

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

func (*VerifyResponse) GetEmail

func (m *VerifyResponse) GetEmail() string

func (*VerifyResponse) ProtoMessage

func (*VerifyResponse) ProtoMessage()

func (*VerifyResponse) Reset

func (m *VerifyResponse) Reset()

func (*VerifyResponse) String

func (m *VerifyResponse) String() string

func (*VerifyResponse) XXX_DiscardUnknown

func (m *VerifyResponse) XXX_DiscardUnknown()

func (*VerifyResponse) XXX_Marshal

func (m *VerifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerifyResponse) XXX_Merge

func (m *VerifyResponse) XXX_Merge(src proto.Message)

func (*VerifyResponse) XXX_Size

func (m *VerifyResponse) XXX_Size() int

func (*VerifyResponse) XXX_Unmarshal

func (m *VerifyResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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