Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) Request ¶
func (api *Api) Request(method, uri string, buf []byte, resCb ResCallBack) error
func (*Api) ResetToken ¶
func (api *Api) ResetToken()
type Options ¶
type Options struct { Token string AppId string Secret string TryCount int UrlFunc UrlFunc HeadFunc HeadFunc SetTokenFunc SetTokenFunc GetTokenFunc GetTokenFunc Data data.D }
type OptionsFunc ¶
type OptionsFunc func(opts *Options)
type ResCallBack ¶
type ResCallBack func(hp *commonhttp.Http, body []byte) error
type SetTokenFunc ¶
Click to show internal directories.
Click to hide internal directories.