Documentation
¶
Overview ¶
Package overseerrtest is a pretend Overseerr for tests: just enough of its v1 API for what Matinee calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake struct {
Key string
URL string
// Users are Overseerr's accounts; the first owns the API key.
Users []map[string]any
// Catalog is every title Overseerr knows, as its API returns them
// (id, mediaType, title or name, …), with "seasons" for shows.
Catalog []map[string]any
// Lists maps a list's path, like "/discover/trending" or
// "/movie/27205/recommendations", to the ids of the titles on it.
Lists map[string][]int
// Requests are what was asked for: mediaType, mediaId, seasons, userId.
Requests []map[string]any
// Searches are the raw query strings searches came with.
Searches []string
// PageSize splits lists into pages of this many titles; 0 is one page.
PageSize int
// AutoApprove lists the users whose requests Overseerr approves.
AutoApprove map[int]bool
// contains filtered or unexported fields
}
func (*Fake) SetPageSize ¶
SetPageSize sets PageSize while the fake is serving.
Click to show internal directories.
Click to hide internal directories.