service

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

package service provides a http handler that reads the path in the request.url and returns an xml document that follows the OPDS 1.1 standard https://specs.opds.io/opds-1.1.html

Index

Constants

This section is empty.

Variables

View Source
var TimeNow = timeNowFunc()

Functions

This section is empty.

Types

type IsDirer added in v1.0.3

type IsDirer interface {
	IsDir() bool
}

type OPDS

type OPDS struct {
	TrustedRoot      string
	IsCalibreLibrary bool
}

func (OPDS) Handler

func (s OPDS) Handler(w http.ResponseWriter, req *http.Request) error

Handler serve the content of a book file or returns an Acquisition Feed when the entries are documents or returns an Navegation Feed when the entries are other folders

Jump to

Keyboard shortcuts

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