Documentation
¶
Index ¶
- type API
- func (api *API) DeleteValue(deleteValue string) *API
- func (api *API) GetAutoSignAPI(device string) (*hbookermodel.LoginData, error)
- func (api *API) GetBookInfo(bookId string) (*hbookermodel.BookInfo, error)
- func (api *API) GetBookShelfInfoAPI() (*hbookermodel.Bookshelf, error)
- func (api *API) GetBookcaseAPI(shelfId string) (*hbookermodel.Bookcase, error)
- func (api *API) GetBuyChapterAPI(chapterId string) (*hbookermodel.ContentBuy, error)
- func (api *API) GetChapterContentAPI(chapterId, chapterKey string) (*hbookermodel.ChapterInfo, error)
- func (api *API) GetChapterKey(chapterId string) (string, error)
- func (api *API) GetDivisionListByBookId(bookId string) ([]hbookermodel.VolumeList, error)
- func (api *API) GetGeetestRegisterAPI(UserID string) (*hbookermodel.GeetestFirstRegisterStruct, error)
- func (api *API) GetSearchBooksAPI(keyword string, page any) (*hbookermodel.Search, error)
- func (api *API) GetUseGeetestAPI(loginName string) (*hbookermodel.GeetestData, error)
- func (api *API) GetUserInfo() (*hbookermodel.UserInfoData, error)
- func (api *API) MySignLogin(username, password, validate, challenge string) (*hbookermodel.LoginData, error)deprecated
- type APP
- func (app *APP) Bookshelf(f1 continueFunction, f2 contentFunction)
- func (app *APP) Download(bookId string, f1 continueFunction, f2 contentFunction)
- func (app *APP) DownloadByChapterId(chapterId string) (*hbookermodel.ChapterInfo, error)
- func (app *APP) EachChapter(bookId string, f func(hbookermodel.ChapterList))
- func (app *APP) Search(keyword string, f1 continueFunction, f2 contentFunction)
- func (app *APP) SetThreadNum(threadNum int) *APP
- type Client
- type OptionFunc
- type Options
- func WithAPIBaseURL(apiBaseURL string) Options
- func WithAccount(account string) Options
- func WithAndroidApiKey(androidApiKey string) Options
- func WithDebug() Options
- func WithDeviceToken(deviceToken string) Options
- func WithLoginToken(loginToken string) Options
- func WithOutputDebug() Options
- func WithProxyURL(proxyURL string) Options
- func WithRetryCount(retryCount int) Options
- func WithVersion(version string) Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶ added in v0.2.0
type API struct {
HttpRequest *req.Request
}
func (*API) DeleteValue ¶ added in v0.2.0
func (*API) GetAutoSignAPI ¶ added in v0.2.0
func (api *API) GetAutoSignAPI(device string) (*hbookermodel.LoginData, error)
func (*API) GetBookInfo ¶ added in v0.2.0
func (api *API) GetBookInfo(bookId string) (*hbookermodel.BookInfo, error)
func (*API) GetBookShelfInfoAPI ¶ added in v0.2.0
func (api *API) GetBookShelfInfoAPI() (*hbookermodel.Bookshelf, error)
func (*API) GetBookcaseAPI ¶ added in v0.2.4
func (api *API) GetBookcaseAPI(shelfId string) (*hbookermodel.Bookcase, error)
func (*API) GetBuyChapterAPI ¶ added in v0.2.0
func (api *API) GetBuyChapterAPI(chapterId string) (*hbookermodel.ContentBuy, error)
func (*API) GetChapterContentAPI ¶ added in v0.2.0
func (api *API) GetChapterContentAPI(chapterId, chapterKey string) (*hbookermodel.ChapterInfo, error)
func (*API) GetChapterKey ¶ added in v0.2.0
func (*API) GetDivisionListByBookId ¶ added in v0.2.0
func (api *API) GetDivisionListByBookId(bookId string) ([]hbookermodel.VolumeList, error)
func (*API) GetGeetestRegisterAPI ¶ added in v0.2.0
func (api *API) GetGeetestRegisterAPI(UserID string) (*hbookermodel.GeetestFirstRegisterStruct, error)
func (*API) GetSearchBooksAPI ¶ added in v0.2.0
func (*API) GetUseGeetestAPI ¶ added in v0.2.0
func (api *API) GetUseGeetestAPI(loginName string) (*hbookermodel.GeetestData, error)
func (*API) GetUserInfo ¶ added in v0.2.0
func (api *API) GetUserInfo() (*hbookermodel.UserInfoData, error)
func (*API) MySignLogin
deprecated
added in
v0.2.0
func (api *API) MySignLogin(username, password, validate, challenge string) (*hbookermodel.LoginData, error)
Deprecated: MySignLogin is deprecated, hbooker has joined login verification, so this method is no longer available
type APP ¶ added in v0.2.3
type APP struct {
// contains filtered or unexported fields
}
func (*APP) Bookshelf ¶ added in v0.2.3
func (app *APP) Bookshelf(f1 continueFunction, f2 contentFunction)
func (*APP) DownloadByChapterId ¶ added in v0.2.3
func (app *APP) DownloadByChapterId(chapterId string) (*hbookermodel.ChapterInfo, error)
func (*APP) EachChapter ¶ added in v0.2.3
func (app *APP) EachChapter(bookId string, f func(hbookermodel.ChapterList))
func (*APP) SetThreadNum ¶ added in v0.2.3
type Client ¶
type OptionFunc ¶
type OptionFunc func(client *Client)
func (OptionFunc) Apply ¶
func (f OptionFunc) Apply(client *Client)
type Options ¶
type Options interface {
Apply(client *Client)
}
func WithAPIBaseURL ¶
func WithAccount ¶
func WithAndroidApiKey ¶
func WithDeviceToken ¶ added in v0.2.0
func WithLoginToken ¶
func WithOutputDebug ¶
func WithOutputDebug() Options
func WithProxyURL ¶
func WithRetryCount ¶ added in v0.2.0
func WithVersion ¶
Click to show internal directories.
Click to hide internal directories.