Documentation
¶
Index ¶
- Variables
- func Base64(s []byte) string
- func DoLogin(clientIP string, c *Conf) error
- func LoginStatus(c *Conf) (online bool, ip string, e error)
- func Md5(content string) string
- func Sha1(content string) string
- func XEncode(content string, key string) []byte
- type Api
- func (a *Api) GetChallenge(username, ip string) (map[string]interface{}, error)
- func (a *Api) GetUserInfo() (map[string]interface{}, error)
- func (a *Api) Init(https bool, domain string, client *http.Client)
- func (a *Api) Login(Username, Password, AcID, Ip, Info, ChkSum, N, Type string) (map[string]interface{}, error)
- type Conf
- type LoginForm
- type LoginInfo
- type LoginMeta
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrResultCannotFound = errors.New("result cannot found from response")
)
Functions ¶
Types ¶
type Api ¶
type Api struct {
BaseUrl string
Client *http.Client
Header http.Header
// contains filtered or unexported fields
}
func (*Api) GetChallenge ¶
func (*Api) GetUserInfo ¶
Click to show internal directories.
Click to hide internal directories.