Documentation
¶
Overview ¶
Code generated by rice embed-go; DO NOT EDIT.
Index ¶
Constants ¶
View Source
const (
Version = "v3.0"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaiduClient ¶
type BaiduClient struct {
*requester.HTTPClient
// contains filtered or unexported fields
}
func NewBaiduClinet ¶
func NewBaiduClinet() *BaiduClient
func (*BaiduClient) BaiduLogin ¶
func (bc *BaiduClient) BaiduLogin(username, password, verifycode, vcodestr string) (lj *LoginJSON)
baiduLogin 发送 百度登录请求
func (*BaiduClient) SendCodeToUser ¶
func (bc *BaiduClient) SendCodeToUser(verifyType, token string) (msg string)
func (*BaiduClient) VerifyCode ¶
func (bc *BaiduClient) VerifyCode(verifyType, token, vcode, u string) (lj *LoginJSON)
type LoginJSON ¶
type LoginJSON struct {
ErrInfo struct {
No string `json:"no"`
Msg string `json:"msg"`
} `json:"errInfo"`
Data struct {
CodeString string `json:"codeString"`
GotoURL string `json:"gotoUrl"`
Token string `json:"token"`
U string `json:"u"`
AuthSID string `json:"authsid"`
Phone string `json:"phone"`
Email string `json:"email"`
BDUSS string `json:"bduss"`
PToken string `json:"ptoken"`
SToken string `json:"stoken"`
CookieString string `json:"cookieString"`
} `json:"data"`
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
baidu_login
command
|
|
|
Package pcstable 格式化表格包
|
Package pcstable 格式化表格包 |
|
Package pcsutil 工具包
|
Package pcsutil 工具包 |
|
cachepool
Package cachepool []byte缓存池
|
Package cachepool []byte缓存池 |
|
checksum
Package checksum 校验本地文件包
|
Package checksum 校验本地文件包 |
|
converter
Package converter 格式, 类型转换包
|
Package converter 格式, 类型转换包 |
|
getip
Package getip 获取 ip 信息包
|
Package getip 获取 ip 信息包 |
|
pcstime
Package pcstime 时间工具包
|
Package pcstime 时间工具包 |
|
waitgroup
Package waitgroup sync.WaitGroup extension
|
Package waitgroup sync.WaitGroup extension |
|
Package pcsverbose 调试包
|
Package pcsverbose 调试包 |
|
pcsdebug
Package pcsdebug 调试包
|
Package pcsdebug 调试包 |
|
Package requester 提供网络请求简便操作
|
Package requester 提供网络请求简便操作 |
|
downloader
Package downloader 多线程下载器, 重构版
|
Package downloader 多线程下载器, 重构版 |
|
downloader/cachepool
Package cachepool []byte缓存池
|
Package cachepool []byte缓存池 |
|
multipartreader
Package multipartreader helps you encode large files in MIME multipart format without reading the entire content into memory.
|
Package multipartreader helps you encode large files in MIME multipart format without reading the entire content into memory. |
|
rio
Package rio rquester io 工具包
|
Package rio rquester io 工具包 |
|
rio/speeds
Package speeds 速度计算工具包
|
Package speeds 速度计算工具包 |
|
uploader
Package uploader 上传包
|
Package uploader 上传包 |
Click to show internal directories.
Click to hide internal directories.