Documentation
¶
Index ¶
Constants ¶
View Source
const MaxCachedPublicationAmount = 10
View Source
const MaxCachedPublicationTTL = time.Second * time.Duration(600)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Remote ¶
type Remote struct {
LocalDirectory string // Local directory base path
S3 *s3.Client // AWS S3-compatible storage
GCS *storage.Client // Google Cloud Storage
HTTP *http.Client // HTTP-requested storage
HTTPEnabled bool // Whether HTTP is enabled
HTTPSEnabled bool // Whether HTTPS is enabled
Config archive.RemoteArchiveConfig
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(config ServerConfig, remote Remote) *Server
type ServerConfig ¶
type ServerConfig struct {
Debug bool
JSONIndent string
InferA11yMetadata streamer.InferA11yMetadata
Auth auth.AuthProvider
ReadingSessionFetcher session.Fetcher
CORSAllowedOrigins []string
// Audio parsing
AudioEmbeddedChapters bool // Whether to extract chapters embedded in audio files
AudioParsingConcurrency uint8 // Number of audio files to probe concurrently (0 = library default)
AudioParsingCacheBlockSize uint32 // Read-cache block size in bytes while probing audio (0 = library default)
}
Directories
¶
| Path | Synopsis |
|---|---|
|
* Written in 2019 by Andrew Ayer * * To the extent possible under law, the author(s) have dedicated all * copyright and related and neighboring rights to this software to the * public domain worldwide.
|
* Written in 2019 by Andrew Ayer * * To the extent possible under law, the author(s) have dedicated all * copyright and related and neighboring rights to this software to the * public domain worldwide. |
|
Package problems defines the application/problem+json (RFC 9457) types returned by the serve API and helpers for converting raw errors into them.
|
Package problems defines the application/problem+json (RFC 9457) types returned by the serve API and helpers for converting raw errors into them. |
Click to show internal directories.
Click to hide internal directories.