Documentation ¶
Index ¶
- type Query
- func (q Query) Add(key string, value any)
- func (q Query) AddMap(m map[string]any)
- func (q Query) Del(key string)
- func (q Query) Encode() string
- func (q Query) Get(key string) any
- func (q Query) SetBookInfoQuery() Query
- func (q Query) SetPageQuery(page any) Query
- func (q Query) ToStringMap() map[string]string
- type SFRequest
- func (s *SFRequest) DownloadCover(coverUrl string) ([]byte, error)
- func (s *SFRequest) Get(endURL string, params Query) (gjson.Result, error)
- func (s *SFRequest) GetWeb(endURL string, params Query) (gjson.Result, error)
- func (s *SFRequest) LogDebug()
- func (s *SFRequest) Post(endURL string, params Query) (*builder.Response, error)
- func (s *SFRequest) PostWeb(endURL string, params Query) (gjson.Result, error)
- func (s *SFRequest) SetAuth(username string, password string)
- func (s *SFRequest) SetProxy(proxy string)
- func (s *SFRequest) SetRetryCount(retryCount int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SFRequest ¶
type SFRequest struct { Settings *sfsettings.Settings // contains filtered or unexported fields }
func NewReqClient ¶
func NewReqClient() *SFRequest
func (*SFRequest) DownloadCover ¶
func (*SFRequest) SetRetryCount ¶
Click to show internal directories.
Click to hide internal directories.