Documentation ¶
Index ¶
- Constants
- type Account
- type CaptchaSign
- type Daemon
- type ExtraData
- type Manager
- func (m *Manager) GetAccount(username string) (oldAccount *Account)
- func (m *Manager) GetExtraData(uin int64) *ExtraData
- func (m *Manager) SetAccount(username, password string) (oldAccount *Account)
- func (m *Manager) SignIn(username, password string) (*Response, error)
- func (m *Manager) SignInCreateToken(username string, uin int64) (*Response, error)
- func (m *Manager) SignInUpdateToken(username string, changeD2 ...bool) (*Response, error)
- func (m *Manager) VerifyCaptcha(uin int64, code []byte, sign ...[]byte) (*Response, error)
- func (m *Manager) VerifySMSCode(uin int64, code []byte) (*Response, error)
- func (m *Manager) VerifySignInCode(code []byte) (*Response, error)
- type Request
- type Response
Constants ¶
View Source
const ( LoginTypeUin = uint32(1) LoginTypeSMS = uint32(3) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptchaSign ¶
type ExtraData ¶
type ExtraData struct { Login []byte `json:"login,omitempty"` T16A []byte `json:"t16a,omitempty"` T172 []byte `json:"t172,omitempty"` SessionAuth []byte `json:"session_auth,omitempty"` PictureSign []byte `json:"picture_sign,omitempty"` PictureData []byte `json:"picture_data,omitempty"` CaptchaSign string `json:"captcha_sign,omitempty"` ErrorCode uint32 `json:"error_code,omitempty"` ErrorTitle string `json:"error_title,omitempty"` ErrorMessage string `json:"error_message,omitempty"` Message string `json:"message,omitempty"` SMSMobile string `json:"sms_mobile,omitempty"` Salt uint64 `json:"salt,omitempty"` SignInCodeSign []byte `json:"signin_code_sign,omitempty"` ThirdPartLogin *pb.ThirdPartLogin_RspBody `json:"third_part_login,omitempty"` T119 []byte `json:"t119,omitempty"` T150 []byte `json:"t150,omitempty"` T161 []byte `json:"t161,omitempty"` T174 []byte `json:"t174,omitempty"` T17B []byte `json:"t17b,omitempty"` T182 []byte `json:"t182,omitempty"` T401 *rpc.Key16Bytes `json:"t401,omitempty"` T402 []byte `json:"t402,omitempty"` T403 []byte `json:"t403,omitempty"` T542 []byte `json:"t542,omitempty"` T546 []byte `json:"t546,omitempty"` T547 []byte `json:"t547,omitempty"` }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) GetAccount ¶
func (*Manager) GetExtraData ¶
func (*Manager) SetAccount ¶
func (*Manager) SignInCreateToken ¶
func (*Manager) SignInUpdateToken ¶
func (*Manager) VerifyCaptcha ¶
func (*Manager) VerifySMSCode ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.