Versions in this module Expand all Collapse all v0 v0.4.0 Feb 19, 2026 Changes in this version + func IsNetworkError(err error) bool + type APIBook struct + Contributions []APIContribution + ID int + Image *APIImage + Pages int + Rating float64 + RatingsCount int + ReleaseDate *string + ReviewsCount int + Slug string + Title string + UsersCount int + UsersReadCount int + type APIContribution struct + Author struct{ ... } + type APIImage struct + URL string + type APIUserBook struct + Book APIBook + ID int + StatusID int + UpdatedAt *string + UserBookReads []APIUserBookRead + type APIUserBookRead struct + FinishedAt *string + ID int + ProgressPages int + StartedAt *string + type Client struct + func NewClient(token string) *Client + func (c *Client) GetBookRatingsByIDs(ctx context.Context, ids []int) (map[int]model.Book, error) + func (c *Client) GetMe(ctx context.Context) (int, string, error) + func (c *Client) InsertUserBook(ctx context.Context, bookID int, statusID int) (int, error) + func (c *Client) InsertUserBookRead(ctx context.Context, userBookID int, progressPages int) (*APIUserBookRead, error) + func (c *Client) ListUserBooks(ctx context.Context, statusID int) ([]APIUserBook, error) + func (c *Client) SearchBooks(ctx context.Context, query string, perPage int, mode model.SearchMode) ([]model.SearchResult, error) + func (c *Client) UpdateReadProgress(ctx context.Context, userBookReadID int, progressPages int) error + func (c *Client) UpdateUserBookStatus(ctx context.Context, userBookID int, statusID int) error + func (c *Client) UpsertUserBookReads(ctx context.Context, userBookID int, progressPages int) error + type FlexibleFloat float64 + func (v *FlexibleFloat) UnmarshalJSON(data []byte) error + type FlexibleInt int + func (v *FlexibleInt) UnmarshalJSON(data []byte) error + type InsertUserBookReadResponse struct + InsertUserBookRead struct{ ... } + type InsertUserBookResponse struct + InsertUserBook struct{ ... } + type MeResponse struct + Me []MeUser + type MeUser struct + ID int + UserBooks []APIUserBook + Username string + type NetworkError struct + Err error + func (e *NetworkError) Error() string + func (e *NetworkError) Unwrap() error + type SearchResponse struct + Search struct{ ... } + type TypesenseBookDoc struct + AuthorNames []string + ID FlexibleInt + Image *TypesenseImage + Pages FlexibleInt + Rating FlexibleFloat + Ratings FlexibleInt + Slug string + Title string + type TypesenseImage struct + URL string + type TypesenseResults struct + Hits []struct{ ... } + type UpdateUserBookReadResponse struct + UpdateUserBookRead struct{ ... } + type UpdateUserBookResponse struct + UpdateUserBook struct{ ... } + type UpsertUserBookReadsResponse struct + UpsertUserBookReads struct{ ... } + type UserBooksResponse struct + Me []MeUser