Documentation
¶
Index ¶
- Variables
- func Base64(s []byte) string
- func Md5(content string) string
- func Sha1(content string) string
- func XEncode(content string, key string) []byte
- type Api
- func (a *Api) DetectAcid() (string, error)
- 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(req *LoginRequest) (map[string]interface{}, error)
- type Conf
- type LoginForm
- type LoginInfo
- type LoginMeta
- type LoginRequest
- type Srun
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 ¶
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.