captcha

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCaptchaNotMatch = fmt.Errorf("captcha not match")

ProviderSet is service providers.

Functions

This section is empty.

Types

type CaptchaRcache

type CaptchaRcache struct {
	// contains filtered or unexported fields
}

func NewCaptchaRcache

func NewCaptchaRcache(rcli *redis.Client) *CaptchaRcache

func (*CaptchaRcache) NewMailCaptcha

func (c *CaptchaRcache) NewMailCaptcha(ctx context.Context, userid, mail string) (string, error)

func (*CaptchaRcache) VerifyEmailCaptcha

func (c *CaptchaRcache) VerifyEmailCaptcha(ctx context.Context, userid, mail, captcha string) error

type CaptchaService

type CaptchaService struct {
	captchaApi.UnimplementedCaptchaServer
	// contains filtered or unexported fields
}

func (*CaptchaService) SendEmailCaptcha

func (cs *CaptchaService) SendEmailCaptcha(ctx context.Context, req *captchaApi.SendEmailCaptchaReq) (*captchaApi.Empty, error)

func (*CaptchaService) VerifyEmailCaptcha

func (cs *CaptchaService) VerifyEmailCaptcha(ctx context.Context, req *captchaApi.VerifyEmailCaptchaReq) (*captchaApi.Empty, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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