login

package
v0.0.0-...-867eee7 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: LGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaiduCookieLogin

func BaiduCookieLogin(cookieStr string) error

func BaiduLogin

func BaiduLogin(option *BaiduLoginOption)

func QQLogin

func QQLogin(option *QQLoginOption)

func WxLogin

func WxLogin(option *WxLoginOption)

Types

type BaiduLoginOption

type BaiduLoginOption struct {
	Ctx       context.Context
	OnError   func(err error)
	OnQrCode  func(img string, pageUrl string)
	OnScan    func()
	OnConfirm func()
	OnSuccess func()
}

type QQLoginOption

type QQLoginOption struct {
	Ctx         context.Context
	OnError     func(err error)
	OnQrCodeUrl func(url string)
	OnScan      func()
	OnConfirm   func()
	OnSuccess   func()
}

type WxLoginOption

type WxLoginOption struct {
	Ctx         context.Context
	OnError     func(err error)
	OnQrCodeUrl func(url string)
	OnScan      func()
	OnConfirm   func()
	OnSuccess   func()
}

Jump to

Keyboard shortcuts

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