Versions in this module Expand all Collapse all v0 v0.10.0 Jun 8, 2026 Changes in this version type Client + func (c *Client) FetchPage(sp *SearchParams, page int) ([]Wallpaper, error) v0.9.0 Jun 7, 2026 Changes in this version + var ErrInvalidPageRange = errors.New("invalid page range") + var ErrInvalidWallCount = errors.New("invalid wallpaper fetch count") type Client + func (c *Client) FetchPages(sp *SearchParams, fromPage int, toPage int) ([]Wallpaper, error) + func (c *Client) FetchWallpaperCount(sp *SearchParams, wallCount int) ([]Wallpaper, error) v0.8.1 Jun 7, 2026 Changes in this version type SearchParams + TopRange string v0.8.0 Jun 4, 2026 Changes in this version + var ErrAPICollections = errors.New("API required for retreiving collections") + var ErrAPISettings = errors.New("API required for reading settings") + var ErrFirstPage = errors.New("already on first page") + var ErrInvalidPage = errors.New("not a valid page") + var ErrLastPage = errors.New("already on the last page") + type Client struct + APIKey string + BaseURL string + func NewClient() Client + func NewClientWithKey(apiKey string) Client + func (c *Client) GetCollections() (CollectionResponse, error) + func (c *Client) GetSettings() (SettingsResponse, error) + func (c *Client) GetTagDetails(tagID int) (TagResponse, error) + func (c *Client) GetWallpaperDetails(wallID string) (WallpaperResponse, error) + func (c *Client) NextPage(result SearchResponse, sp *SearchParams) (SearchResponse, error) + func (c *Client) PrevPage(result SearchResponse, sp *SearchParams) (SearchResponse, error) + func (c *Client) Search(sp SearchParams) (SearchResponse, error) + func (c *Client) SetPage(result SearchResponse, sp *SearchParams, page int) (SearchResponse, error) + type CollectionResponse struct + UserCollections []Collections + type Collections struct + Count int + ID int + Label string + Public int + Views int + type Meta struct + CurrentPage int + LastPage int + PerPage int + Seed string + Total int + func (m *Meta) UnmarshalJSON(data []byte) error + type SearchParams struct + AtLeast string + Categories string + KeySearch string + Order string + Page int + Purity string + Ratios string + Resolution string + Seed string + Sorting string + func NewSearch() SearchParams + type SearchResponse struct + Metadata Meta + Wallpapers []Wallpaper + type Settings struct + Categories []string + PerPage string + Purity []string + Ratios []string + Resolutions []string + TagBlacklist []string + ThumbSize string + ToplistRange string + UserBlacklist []string + type SettingsResponse struct + UserSettings Settings + type TagResponse struct + Tagdata Tags + type Tags struct + Alias string + Category string + CategoryID int + Date string + ID int + Name string + Purity string + func (t Tags) TagAlias() string + func (t Tags) TagCategory() string + func (t Tags) TagCategoryID() int + func (t Tags) TagDate() string + func (t Tags) TagID() int + func (t Tags) TagName() string + func (t Tags) TagPurity() string + type Thumbs struct + Large string + Orig string + Small string + type Uploader struct + Group string + Username string + type Wallpaper struct + AxisX int + AxisY int + Category string + Date string + Favorites int + FileSize int + FileType string + ID string + Path string + Purity string + Ratio string + Resolution string + ShortURL string + Thumbnails Thumbs + URL string + Views int + WallpaperTags []Tags + WallpaperUploader Uploader + func (w Wallpaper) ImageURL() string + func (w Wallpaper) IsAnime() bool + func (w Wallpaper) IsGeneral() bool + func (w Wallpaper) IsNSFW() bool + func (w Wallpaper) IsPeople() bool + func (w Wallpaper) IsSFW() bool + func (w Wallpaper) IsSketchy() bool + func (w Wallpaper) SizeByte() int + func (w Wallpaper) SizeKiB() float64 + func (w Wallpaper) SizeMiB() float64 + func (w Wallpaper) TagNames() []string + func (w Wallpaper) ThumbLarge() string + func (w Wallpaper) ThumbOrig() string + func (w Wallpaper) ThumbSmall() string + func (w Wallpaper) WallFileType() string + func (w Wallpaper) WallShortURL() string + func (w Wallpaper) WallURL() string + func (w Wallpaper) WallXAxis() int + func (w Wallpaper) WallYAxis() int + type WallpaperResponse struct + Wall Wallpaper v0.7.0 Jun 4, 2026 v0.6.0 Jun 4, 2026 v0.5.0 Jun 3, 2026 v0.4.0 Jun 3, 2026 v0.3.0 Jun 3, 2026 v0.2.0 Jun 3, 2026 v0.1.0 Jun 3, 2026 v0.1.0-alpha.1 Jun 2, 2026