r2-streamer-go

command module
v0.0.0-...-a11c799 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: BSD-3-Clause Imports: 22 Imported by: 0

README

Readium-2 Streamer in Go

This project is based on the Readium-2 Streamer architecture that basically takes an EPUB as an input and exposes in HTTP:

  • a Web Publication Manifest based on the OPF of the original EPUB
  • resources from the container (HTML, CSS, images etc.)

It is entirely written in Go using Negroni.

This project is broken down in multiple Go packages that can be used independently from the project:

  • models is an in-memory model of a publication and its components
  • parser is responsible for parsing an EPUB and converting that info to the in-memory model
  • fetcher is meant to access resources contained in an EPUB and pre-process them (decryption, deobfuscation, content injection)

Usage

The server binary can be called using a single argument: the location to an EPUB file.

The server will bind itself to an available port on localhost and return a URI pointing to the Web Publication Manifest.

Need a Binary Version?

Releases for stable versions are available at: https://github.com/readium/r2-streamer-go/releases

Or with docker installed you can use this commande : sudo docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.8 go get ; go build -v

Live Demo

A live demo is available at: https://proto.myopds.com/

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lcp

Jump to

Keyboard shortcuts

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