Documentation ¶
Index ¶
- Constants
- type AllBookshopBooksSearchResults
- type AppConfig
- type AutomatedCrawlReport
- type AutomatedShelfCheckURLResponse
- type AvailableBook
- type BasicGoodReadsBook
- type BookShopBookSearchResult
- type BooleanSettingStatusResponse
- type CrawlStats
- type DiscordEmbed
- type DiscordMsg
- type EmbedAuthor
- type EmbedField
- type EmbedFooter
- type EmbedImage
- type EnchancedSearchResult
- type GetAutomatedCrawlTimeResponse
- type GetDiscordMessageFormatResponse
- type GetDiscordWebhookResponse
- type GetKnownAuthorsResponse
- type GetPreviewForShelfResponse
- type GetPreviewsForShelvesResponse
- type GetRecentCrawlReportsResponse
- type GoodReadsAuthor
- type GoodReadsDescription
- type GoodReadsSearchBookResult
- type KnownAuthor
- type NewBookInSeries
- type RecentCrawlBreadcrumb
- type Series
- type SeriesBook
- type SeriesCrawlStats
- type ShelfToCrawl
- type TheBookshopBook
- type UptimeResponse
- type WorkerInteralData
- type WsBookshopSearchResult
- type WsErrorMsg
- type WsGoodreadsBook
- type WsNewBookAvailable
- type WsNewSeries
- type WsSearchResultReturned
- type WsSeriesCrawlStats
- type WsTotalBooks
Constants ¶
View Source
const ( TITLE_MATCH = iota AUTHOR_MATCH SERIES_MATCH )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllBookshopBooksSearchResults ¶
type AllBookshopBooksSearchResults map[string]BookShopBookSearchResult
type AutomatedCrawlReport ¶
type AutomatedShelfCheckURLResponse ¶
type AutomatedShelfCheckURLResponse struct {
ShelURL string `json:"shelfURL"`
}
type AvailableBook ¶
type AvailableBook struct { BookInfo BasicGoodReadsBook `json:"bookInfo"` BookPurchaseInfo TheBookshopBook `json:"bookPurchaseInfo"` BookFoundFrom int `json:"bookFoundFrom"` Ignore bool `json:"ignore"` LastCheckedTimeStamp int64 `json:"lastCheckedTimeStamp"` }
type BasicGoodReadsBook ¶
type BasicGoodReadsBook struct { ID string `json:"id"` Title string `json:"title"` Author string `json:"author"` SeriesText string `json:"seriesText"` Link string `json:"link"` Cover string `json:"cover"` Isbn13 string `json:"isbn13"` Asin string `json:"asin"` Rating float32 `json:"rating"` PublishedYear int `json:"published"` // BooksBooksBooks specific meta data IsFromSeriesSearch bool `json:"isFromSeriesSearch"` }
type BookShopBookSearchResult ¶
type BookShopBookSearchResult struct {
SearchResultBooks []TheBookshopBook `json:"searchResultBooks"`
}
type BooleanSettingStatusResponse ¶
type BooleanSettingStatusResponse struct {
Enabled bool `json:"enabled"`
}
type CrawlStats ¶
type DiscordEmbed ¶
type DiscordEmbed struct { Title string `json:"title,omitempty"` EmbedType string `json:"type,omitempty"` Description string `json:"description,omitempty"` URL string `json:"url,omitempty"` Timestamp string `json:"timestamp,omitempty"` Color int `json:"color,omitempty"` Image EmbedImage `json:"image,omitempty"` Thumbnail EmbedImage `json:"thumbnail,omitempty"` Fields []EmbedField `json:"fields,omitempty"` Author EmbedAuthor `json:"author,omitempty"` }
type DiscordMsg ¶
type DiscordMsg struct { Content string `json:"content,omitempty"` Username string `json:"username,omitempty"` Avatar_url string `json:"avatar_url,omitempty"` Embed []DiscordEmbed `json:"embeds"` }
type EmbedAuthor ¶
type EmbedField ¶
type EmbedFooter ¶
type EmbedFooter struct {}
type EmbedImage ¶
type EnchancedSearchResult ¶
type EnchancedSearchResult struct { SearchBook BasicGoodReadsBook `json:"searchBook"` AuthorMatches []TheBookshopBook `json:"authorMatches"` TitleMatches []TheBookshopBook `json:"titleMatches"` }
type GetAutomatedCrawlTimeResponse ¶
type GetAutomatedCrawlTimeResponse struct {
Time string `json:"time"`
}
type GetDiscordMessageFormatResponse ¶
type GetDiscordMessageFormatResponse struct {
Format string `json:"format"`
}
type GetDiscordWebhookResponse ¶
type GetDiscordWebhookResponse struct {
WebHook string `json:"webhook"`
}
type GetKnownAuthorsResponse ¶
type GetKnownAuthorsResponse struct {
Authors []string `json:"authors"`
}
type GetPreviewForShelfResponse ¶
type GetPreviewForShelfResponse struct {
ShelfToCrawl ShelfToCrawl `json:"shelfToCrawlPreview"`
}
type GetPreviewsForShelvesResponse ¶
type GetPreviewsForShelvesResponse struct {
ShelvesToCrawl []ShelfToCrawl `json:"shelvesToCrawlPreviews"`
}
type GetRecentCrawlReportsResponse ¶
type GetRecentCrawlReportsResponse struct {
Reports []AutomatedCrawlReport `json:"reports"`
}
type GoodReadsAuthor ¶
type GoodReadsDescription ¶
type GoodReadsSearchBookResult ¶
type GoodReadsSearchBookResult struct { ImageURL string `json:"imageUrl"` BookID string `json:"bookId"` WorkID string `json:"workId"` BookURL string `json:"bookUrl"` FromSearch bool `json:"from_search"` FromSrp bool `json:"from_srp"` Qid string `json:"qid"` Rank int `json:"rank"` Title string `json:"title"` BookTitleBare string `json:"bookTitleBare"` NumPages int `json:"numPages"` AvgRating string `json:"avgRating"` RatingsCount int `json:"ratingsCount"` Author GoodReadsAuthor `json:"author"` KcrPreviewURL string `json:"kcrPreviewUrl"` Description GoodReadsDescription `json:"description"` }
type KnownAuthor ¶
type NewBookInSeries ¶
type NewBookInSeries struct {
SeriesBaseTitle string `json:"seriesBaseTitle"`
}
type RecentCrawlBreadcrumb ¶
type SeriesBook ¶
type SeriesBook struct { BookSeriesText string `json:"bookSeriesText"` RealBookOrder int `json:"realBookOrder"` BookInfo BasicGoodReadsBook `json:"bookInfo"` TheBookshopMatch TheBookshopBook `json:"theBookshopMatch"` }
type SeriesCrawlStats ¶
type SeriesCrawlStats struct { BooksInShelf int `json:"booksInShelf"` SeriesCount int `json:"seriesCount"` TotalBooksInSeries int `json:"totalBooksInSeries"` BooksSearchedOnTheBookshop int `json:"booksSearchedOnTheBookshop"` SeriesLookedUp int `json:"seriesLookedUp"` BookMatchesFound int `json:"bookMatchesFound"` }
type ShelfToCrawl ¶
type TheBookshopBook ¶
type UptimeResponse ¶
type WorkerInteralData ¶
type WsBookshopSearchResult ¶
type WsBookshopSearchResult struct { SearchResult EnchancedSearchResult `json:"searchResult"` CrawlStats CrawlStats `json:"crawlStats"` }
type WsErrorMsg ¶
type WsErrorMsg struct {
Error string `json:"error"`
}
type WsGoodreadsBook ¶
type WsGoodreadsBook struct { BookInfo BasicGoodReadsBook `json:"bookinfo"` CrawlStats CrawlStats `json:"crawlStats"` }
type WsNewBookAvailable ¶
type WsNewBookAvailable struct { Book TheBookshopBook `json:"newAvailableBook"` CrawlStats CrawlStats `json:"crawlStats"` }
type WsNewSeries ¶
type WsNewSeries struct { Series Series `json:"series"` CrawlStats SeriesCrawlStats `json:"seriesCrawlStats"` }
type WsSearchResultReturned ¶
type WsSearchResultReturned struct { SearchBook BasicGoodReadsBook `json:"searchBook"` Match TheBookshopBook `json:"match"` CrawlStats SeriesCrawlStats `json:"seriesCrawlStats"` }
type WsSeriesCrawlStats ¶
type WsSeriesCrawlStats struct {
CrawlStats SeriesCrawlStats `json:"seriesCrawlStats"`
}
type WsTotalBooks ¶
type WsTotalBooks struct { TotalBooks int `json:"totalBooks"` CrawlStats CrawlStats `json:"crawlStats"` }
Click to show internal directories.
Click to hide internal directories.