Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct { ID int64 `json:"id"` Authors []string `json:"authors"` Title string `json:"title"` Series string `json:"series"` Files []BookFile `json:"files"` }
Book represents a book in a library.
type BookConverter ¶
BookConverter converts a book to epub.
func NewCalibreBookConverter ¶
func NewCalibreBookConverter(booksRoot, cacheDir string, numWorkers int) BookConverter
NewCalibreBookConverter creates a new BookConverter which uses calibre.
type BookFile ¶
type BookFile struct { ID int64 `json:"id"` Extension string `json:"extension"` Tags []string `json:"tags"` Hash string `json:"hash"` OriginalFilename string `json:"original_filename"` Filename string `json:"filename"` Mtime time.Time `json:"mtime"` Size int64 `json:"size"` }
BookFile represents a file linked to a book.
type Config ¶
type Config struct { Lib *books.Library TemplatesDir string Converter BookConverter ItemsPerPage int Hsrv *http.Server HtpasswdFile string BooksRoot string OutputTemplate *txtTemplate.Template }
Config is the configuration of the server, used in New.
Click to show internal directories.
Click to hide internal directories.