Documentation ¶
Index ¶
- type GoogleAuth
- func (this *GoogleAuth) GetCode(secret string) (string, error)
- func (this *GoogleAuth) GetQrcode(user, secret string) string
- func (this *GoogleAuth) GetQrcodeUrl(user, secret string) string
- func (this *GoogleAuth) GetSecret() string
- func (this *GoogleAuth) VerifyCode(secret, code string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleAuth ¶
type GoogleAuth struct { }
func NewGoogleAuth ¶
func NewGoogleAuth() *GoogleAuth
func (*GoogleAuth) GetQrcode ¶
func (this *GoogleAuth) GetQrcode(user, secret string) string
获取动态码二维码内容
func (*GoogleAuth) GetQrcodeUrl ¶
func (this *GoogleAuth) GetQrcodeUrl(user, secret string) string
获取动态码二维码图片地址,这里是第三方二维码api
func (*GoogleAuth) VerifyCode ¶
func (this *GoogleAuth) VerifyCode(secret, code string) (bool, error)
验证动态码
Click to show internal directories.
Click to hide internal directories.