Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AudiobookProfile is the W3C Audiobooks profile AudiobookProfile = "https://www.w3.org/TR/audiobooks/" // PublicationManifestProfile is the W3C Publication Manifest profile PublicationManifestProfile = "https://www.w3.org/TR/pub-manifest/" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manifest ¶
Manifest wraps publication manifest text, URI, type and, optionally, the HTML document that contains the publication manifest.
func GetManifestFromURI ¶
GetManifestFromURI parses and validates publication manifest based on the URI scheme.
func (*Manifest) ProcessManifest ¶
ProcessManifest parses and validates the publication manifest and returns any errors that were found during validation.
type ManifestError ¶
type ManifestError struct { Severity Severity // contains filtered or unexported fields }
ManifestError corresponds to errors returned while parsing and validating the W3C publication manifest.
func NewFatalError ¶
func NewFatalError(message string) *ManifestError
NewFatalError returns a ManifestError with fatal severity.
func NewValidationError ¶
func NewValidationError(message string) *ManifestError
NewValidationError returns a ManifestError with validation severity.
func (*ManifestError) Error ¶
func (m *ManifestError) Error() string
Click to show internal directories.
Click to hide internal directories.