Documentation ¶
Index ¶
- func DefaultPath() string
- type Config
- type Invoker
- func (i *Invoker) Cookie(raw, name string) string
- func (i *Invoker) Cookies(url *url.URL) []*http.Cookie
- func (i *Invoker) Do(req *http.Request, data interface{}, retry int) error
- func (i *Invoker) Fetch(path string) (*http.Response, error)
- func (i *Invoker) Get(path string, params url.Values, data interface{}) error
- func (i *Invoker) Post(path string, params url.Values, data interface{}) error
- func (i *Invoker) PwdLogin(link string, params url.Values, user *User) (result *LoginResult, err error)
- func (i *Invoker) Send(req *http.Request) (*http.Response, error)
- func (i *Invoker) SetPrepare(prepare func(req *http.Request))
- type LoginResult
- type RsaConfig
- type Session
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
func DefaultPath() string
Types ¶
type Config ¶
type Config struct { User *User `json:"user,omitempty"` RSA RsaConfig `json:"rsa,omitempty"` SSON string `json:"sson,omitempty"` Auth string `json:"auth,omitempty"` Session *Session `json:"session,omitempty"` // contains filtered or unexported fields }
func OpenConfig ¶
type Invoker ¶
type Invoker struct { Refresh func() error // contains filtered or unexported fields }
func (*Invoker) SetPrepare ¶
type LoginResult ¶
type RsaConfig ¶
Click to show internal directories.
Click to hide internal directories.