Versions in this module Expand all Collapse all v0 v0.1.0 Mar 30, 2026 Changes in this version + func CategoryBits(cats string) string + func ParseResolution(res string) (int, int, bool) + type Bing struct + func NewBing() *Bing + func NewBingWithBase(baseURL string) *Bing + func (b *Bing) Categories() []string + func (b *Bing) Name() string + func (b *Bing) NeedsKey() bool + func (b *Bing) Search(opts SearchOpts) ([]WallpaperResult, error) + func (b *Bing) SearchTotal(_ SearchOpts) (int, error) + type Reddit struct + func NewReddit() *Reddit + func NewRedditWithBase(baseURL string) *Reddit + func (r *Reddit) Categories() []string + func (r *Reddit) Name() string + func (r *Reddit) NeedsKey() bool + func (r *Reddit) Search(opts SearchOpts) ([]WallpaperResult, error) + func (r *Reddit) SearchTotal(_ SearchOpts) (int, error) + type SearchOpts struct + Categories []string + Colors []string + Count int + MinRes string + Page int + Query string + Ratios string + Sort string + Subreddit string + TimeRange string + type Source interface + Categories func() []string + Name func() string + NeedsKey func() bool + Search func(opts SearchOpts) ([]WallpaperResult, error) + SearchTotal func(opts SearchOpts) (int, error) + type Wallhaven struct + func NewWallhaven(apiKey string) *Wallhaven + func NewWallhavenWithBase(baseURL, apiKey string) *Wallhaven + func (w *Wallhaven) Categories() []string + func (w *Wallhaven) Name() string + func (w *Wallhaven) NeedsKey() bool + func (w *Wallhaven) Search(opts SearchOpts) ([]WallpaperResult, error) + func (w *Wallhaven) SearchTotal(opts SearchOpts) (int, error) + type WallpaperResult struct + Favorites int + FullURL string + ID string + PreviewURL string + Resolution string + Source string + Tags []string + Views int + func (r WallpaperResult) Filename() string + func (r WallpaperResult) MeetsMinResolution(minRes string) bool