Documentation ¶
Index ¶
- func RegisterEmailVerificationHandler(s server.Server, hdlr EmailVerificationHandler, opts ...server.HandlerOption) error
- type EmailVerificationHandler
- type EmailVerificationService
- type SendVerificationRequest
- func (*SendVerificationRequest) Descriptor() ([]byte, []int)
- func (m *SendVerificationRequest) GetEmail() string
- func (*SendVerificationRequest) ProtoMessage()
- func (m *SendVerificationRequest) Reset()
- func (m *SendVerificationRequest) String() string
- func (m *SendVerificationRequest) XXX_DiscardUnknown()
- func (m *SendVerificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendVerificationRequest) XXX_Merge(src proto.Message)
- func (m *SendVerificationRequest) XXX_Size() int
- func (m *SendVerificationRequest) XXX_Unmarshal(b []byte) error
- type SendVerificationResponse
- func (*SendVerificationResponse) Descriptor() ([]byte, []int)
- func (m *SendVerificationResponse) GetMessage() string
- func (*SendVerificationResponse) ProtoMessage()
- func (m *SendVerificationResponse) Reset()
- func (m *SendVerificationResponse) String() string
- func (m *SendVerificationResponse) XXX_DiscardUnknown()
- func (m *SendVerificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendVerificationResponse) XXX_Merge(src proto.Message)
- func (m *SendVerificationResponse) XXX_Size() int
- func (m *SendVerificationResponse) XXX_Unmarshal(b []byte) error
- type VerifyRequest
- func (*VerifyRequest) Descriptor() ([]byte, []int)
- func (m *VerifyRequest) GetVerificationCode() string
- func (*VerifyRequest) ProtoMessage()
- func (m *VerifyRequest) Reset()
- func (m *VerifyRequest) String() string
- func (m *VerifyRequest) XXX_DiscardUnknown()
- func (m *VerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VerifyRequest) XXX_Merge(src proto.Message)
- func (m *VerifyRequest) XXX_Size() int
- func (m *VerifyRequest) XXX_Unmarshal(b []byte) error
- type VerifyResponse
- func (*VerifyResponse) Descriptor() ([]byte, []int)
- func (m *VerifyResponse) GetEmail() string
- func (*VerifyResponse) ProtoMessage()
- func (m *VerifyResponse) Reset()
- func (m *VerifyResponse) String() string
- func (m *VerifyResponse) XXX_DiscardUnknown()
- func (m *VerifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VerifyResponse) XXX_Merge(src proto.Message)
- func (m *VerifyResponse) XXX_Size() int
- func (m *VerifyResponse) XXX_Unmarshal(b []byte) error
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
Click to show internal directories.
Click to hide internal directories.