Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrResultCannotFound = errors.New("result cannot found from response") ErrAcidCannotFound = errors.New("acid not found") )
Functions ¶
Types ¶
type Api ¶
type Api struct {
BaseUrl string
Client *http.Client
// 禁用自动重定向
NoDirect *http.Client
CustomHeader map[string]interface{}
}
func (*Api) DetectAcid ¶ added in v1.3.9
func (*Api) GetChallenge ¶
func (*Api) GetUserInfo ¶
type LoginMeta ¶
type LoginMeta struct {
N string `json:"n" yaml:"n"`
Type string `json:"type" yaml:"type"`
Acid string `json:"acid" yaml:"acid"`
Enc string `json:"enc" yaml:"enc"`
OS string `json:"os" yaml:"os"`
Name string `json:"name" yaml:"name"`
InfoPrefix string `json:"info_prefix" yaml:"info_prefix"`
DoubleStack bool `json:"double_stack" yaml:"double_stack"`
}
type LoginRequest ¶ added in v1.4.5
type Srun ¶ added in v1.3.9
type Srun struct {
//登录参数,不可缺省
LoginInfo LoginInfo
// contains filtered or unexported fields
}
func (Srun) DetectAcid ¶ added in v1.3.9
Click to show internal directories.
Click to hide internal directories.