Documentation ¶
Index ¶
- type API
- func (api *API) DeleteValue(deleteValue string) *API
- func (api *API) GetAutoSignAPI(device string) (*hbookermodel.Register, error)
- func (api *API) GetBookInfo(bookId string) (*hbookermodel.Detail, 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) GetChapterCmd(chapterId string) (*hbookermodel.ChapterCmd, error)
- func (api *API) GetCptIfm(chapterId, chapterKey string) (*hbookermodel.ChapterInfo, error)
- func (api *API) GetDivisionListByBookId(bookId string) (*hbookermodel.Division, 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.Geetest, error)
- func (api *API) GetUserInfo() (*hbookermodel.UserInfo, error)
- func (api *API) MySignLogin(username, password, validate, challenge string) (*hbookermodel.Login, error)deprecated
- type APP
- func (app *APP) Bookshelf(continueFunc continueFunction, contentFunc contentFunction) *APP
- func (app *APP) Download(continueFunc continueFunction, contentFunc contentFunction) *APP
- func (app *APP) DownloadByChapterId(chapterId string) (*hbookermodel.ChapterInfo, error)
- func (app *APP) GetBookInfo() *hbookermodel.BookInfo
- func (app *APP) MergeText(f func(chapter hbookermodel.ChapterList))
- func (app *APP) Search(keyword string, continueFunc continueFunction, contentFunc contentFunction) *APP
- func (app *APP) SetBookInfo(bookInfo *hbookermodel.BookInfo) *APP
- 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
- type Request
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.Register, error)
func (*API) GetBookInfo ¶ added in v0.2.0
func (api *API) GetBookInfo(bookId string) (*hbookermodel.Detail, 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) GetChapterCmd ¶ added in v0.4.0
func (api *API) GetChapterCmd(chapterId string) (*hbookermodel.ChapterCmd, error)
func (*API) GetCptIfm ¶ added in v0.4.0
func (api *API) GetCptIfm(chapterId, chapterKey string) (*hbookermodel.ChapterInfo, error)
func (*API) GetDivisionListByBookId ¶ added in v0.2.0
func (api *API) GetDivisionListByBookId(bookId string) (*hbookermodel.Division, 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.Geetest, error)
func (*API) GetUserInfo ¶ added in v0.2.0
func (api *API) GetUserInfo() (*hbookermodel.UserInfo, error)
func (*API) MySignLogin
deprecated
added in
v0.2.0
func (api *API) MySignLogin(username, password, validate, challenge string) (*hbookermodel.Login, 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) DownloadByChapterId ¶ added in v0.2.3
func (app *APP) DownloadByChapterId(chapterId string) (*hbookermodel.ChapterInfo, error)
func (*APP) GetBookInfo ¶ added in v0.4.2
func (app *APP) GetBookInfo() *hbookermodel.BookInfo
func (*APP) MergeText ¶ added in v0.4.2
func (app *APP) MergeText(f func(chapter hbookermodel.ChapterList))
func (*APP) SetBookInfo ¶ added in v0.4.2
func (app *APP) SetBookInfo(bookInfo *hbookermodel.BookInfo) *APP
func (*APP) SetThreadNum ¶ added in v0.2.3
type Client ¶
type Client struct { HttpsClient *req.Client Authenticate *hbookermodel.Authenticate // contains filtered or unexported fields }
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.