Versions in this module Expand all Collapse all v0 v0.5.1 Aug 31, 2026 v0.5.0 Aug 31, 2026 Changes in this version + type AuthDocument struct + Authentication []AuthFlow + Description string + ID string + Links []Link + LoginLabel string + PasswordLabel string + Title string + func (d *AuthDocument) Flow(typ string) (AuthFlow, bool) + func (d *AuthDocument) SupportsBasic() bool + type AuthFlow struct + Links []Link + LoginLabel string + PasswordLabel string + Type string + type AuthenticateHint struct + Href string + Type string type Link + Authenticate *AuthenticateHint v0.4.0 Aug 23, 2026 v0.3.0 Aug 23, 2026 Changes in this version + const AuthFlowBasic + const MediaTypeAuthDocument + const MediaTypeProgression + const MediaTypeProgressionReadium + const RelAuthDocument + const RelProgression + const RelProgressionCantook + type Device struct + ID string + Name string + type Progression struct + Device Device + Modified time.Time + Progression float64 + References []string + Title string v0.2.0 Jul 27, 2026 Changes in this version + const NSPSE + const RelPageStream + type PageImage struct + Content io.Reader + Type string + type PageRequest struct + ID string + MaxWidth int + Number int + Query url.Values + type PageSource interface + Page func(ctx context.Context, req PageRequest) (*PageImage, error) + type PageStream struct + Href string + LastRead int + LastReadDate time.Time + PageCount int + Type string type Publication + PageStream *PageStream + func (p *Publication) LastRead(page int, at time.Time) *Publication + func (p *Publication) Stream(hrefTemplate, mediaType string, pageCount int) *Publication v0.1.1 Jul 3, 2026 Changes in this version + func PageHref(href string, page int) string type Feed + func (f *Feed) Paged(baseHref string, page int, hasNext bool) *Feed v0.1.0 Jun 23, 2026 Changes in this version + const MediaTypeAcquisition + const MediaTypeEntry + const MediaTypeFeed + const MediaTypeNavigation + const MediaTypeOpenSearch + const MediaTypePublication + const NSAtom + const NSDCTerms + const NSOPDS + const NSOpenSearch + const NSThreading + const RelAlternate + const RelCollection + const RelCrawlable + const RelFacet + const RelFeatured + const RelFirst + const RelGroup + const RelImage + const RelLast + const RelNext + const RelPrevious + const RelRecommended + const RelRelated + const RelSearch + const RelSelf + const RelShelf + const RelSortNew + const RelSortPopular + const RelStart + const RelSubscriptions + const RelSubsection + const RelThumbnail + const RelUp + const StateAvailable + const StateReady + const StateReserved + const StateUnavailable + var ErrNotFound = errors.New("opds: not found") + type Acquisition struct + Availability *Availability + Copies *Copies + Holds *Holds + Href string + Indirect []IndirectAcquisition + Prices []Price + Rel AcquisitionRel + Title string + Type string + type AcquisitionRel string + const AcquireBorrow + const AcquireBuy + const AcquireGeneric + const AcquireOpenAccess + const AcquireSample + const AcquireSubscribe + type Author struct + Name string + SortAs string + URI string + type Availability struct + Since time.Time + State string + Until time.Time + type Copies struct + Available int + Total int + type Facet struct + Active bool + Count int + Group string + Href string + Title string + Type string + type Feed struct + Authors []Author + CurrentPage int + Facets []Facet + Groups []Group + ID string + Icon string + ItemsPerPage int + Links []Link + Navigation []NavEntry + Publications []Publication + StartIndex int + Subtitle string + Title string + TotalResults int + Updated time.Time + func NewFeed(id, title string) *Feed + func (f *Feed) Add(pubs ...Publication) *Feed + func (f *Feed) AddFacet(group, title, href, mediaType string, count int, active bool) *Feed + func (f *Feed) AddGroup(g Group) *Feed + func (f *Feed) AddNav(title, href, mediaType, rel string) *Feed + func (f *Feed) AddNavEntry(e NavEntry) *Feed + func (f *Feed) At(t time.Time) *Feed + func (f *Feed) By(name string) *Feed + func (f *Feed) IsAcquisition() bool + func (f *Feed) Link(rel, href, mediaType string) *Feed + func (f *Feed) Next(href, mediaType string) *Feed + func (f *Feed) Page(total, perPage, start int) *Feed + func (f *Feed) Prev(href, mediaType string) *Feed + func (f *Feed) SearchLink(href, mediaType string, templated bool) *Feed + func (f *Feed) Self(href, mediaType string) *Feed + func (f *Feed) Start(href string) *Feed + func (f *Feed) SubtitledBy(s string) *Feed + func (f *Feed) Up(href, mediaType string) *Feed + type FeedRequest struct + BaseURL string + ID string + Page int + Query url.Values + Version Version + type Group struct + Href string + Navigation []NavEntry + Publications []Publication + Rel string + Title string + Type string + type Holds struct + Position *int + Total int + type Image struct + Height int + Href string + Thumbnail bool + Type string + Width int + type IndirectAcquisition struct + Child []IndirectAcquisition + Type string + type Link struct + Href string + Rel string + Templated bool + Title string + Type string + type NavEntry struct + Content string + Href string + ID string + Images []Image + Rel string + Title string + Type string + Updated time.Time + type Price struct + Currency string + Value float64 + type Publication struct + Acquisitions []Acquisition + Authors []Author + Contributors []Author + Description string + ID string + Identifiers []string + Images []Image + Languages []string + Links []Link + Published time.Time + Publisher string + Rights string + Series *Series + SortAs string + Subjects []Subject + Summary string + Title string + Updated time.Time + func NewPublication(id, title string) *Publication + func (p *Publication) About(name string) *Publication + func (p *Publication) Acquire(a Acquisition) *Publication + func (p *Publication) Author(a Author) *Publication + func (p *Publication) Borrow(href, mediaType, state string) *Publication + func (p *Publication) Buy(href, mediaType, currency string, value float64) *Publication + func (p *Publication) By(name string) *Publication + func (p *Publication) Categorize(name, code, scheme string) *Publication + func (p *Publication) Cover(href, mediaType string) *Publication + func (p *Publication) Describe(s string) *Publication + func (p *Publication) From(publisher string) *Publication + func (p *Publication) ISBN(isbn string) *Publication + func (p *Publication) Identifier(id string) *Publication + func (p *Publication) In(langs ...string) *Publication + func (p *Publication) Link(rel, href, mediaType string) *Publication + func (p *Publication) OpenAccess(href, mediaType string) *Publication + func (p *Publication) PartOf(series string, position float64) *Publication + func (p *Publication) PublishedAt(t time.Time) *Publication + func (p *Publication) Sample(href, mediaType string) *Publication + func (p *Publication) Summarize(s string) *Publication + func (p *Publication) Thumbnail(href, mediaType string) *Publication + func (p *Publication) UpdatedAt(t time.Time) *Publication + type SearchDescription struct + Description string + ShortName string + Template string + type SearchRequest struct + Author string + BaseURL string + Page int + Query url.Values + Terms string + Title string + Version Version + type Searcher interface + Search func(ctx context.Context, req SearchRequest) (*Feed, error) + SearchDescription func() SearchDescription + type Series struct + Name string + Position float64 + type Source interface + Feed func(ctx context.Context, req FeedRequest) (*Feed, error) + Publication func(ctx context.Context, id string) (*Publication, error) + Root func(ctx context.Context, req FeedRequest) (*Feed, error) + type Subject struct + Code string + Name string + Scheme string + type Version int + const Version1 + const Version2 + func (v Version) String() string