opds1

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package opds1 encodes the version-neutral opds model to OPDS 1.2 feeds and entry documents, serialized as Atom (XML) with the OPDS extension namespaces.

Index

Constants

View Source
const Header = xml.Header

Header is the XML declaration emitted before every document.

Variables

This section is empty.

Functions

func Encode

func Encode(w io.Writer, f *opds.Feed) error

Encode writes the OPDS 1.2 Atom encoding of the feed to w.

func Marshal

func Marshal(f *opds.Feed) ([]byte, error)

Marshal returns the OPDS 1.2 Atom encoding of the feed, including the XML declaration.

func MarshalEntry

func MarshalEntry(p *opds.Publication) ([]byte, error)

MarshalEntry returns a standalone OPDS 1.2 entry document for a single publication (media type application/atom+xml;type=entry;profile=opds-catalog).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL