Documentation ¶
Index ¶
- Constants
- Variables
- func AbsArtsTypeDir(at litres_integration.ArtsType) (string, error)
- func AbsAuthorTypeDir(at litres_integration.AuthorType) (string, error)
- func AbsCookiesFilename() (string, error)
- func AbsCoverImagePath(id int64, size litres_integration.CoverSize) (string, error)
- func AbsDataTypeDir(stringer fmt.Stringer) (string, error)
- func AbsFileDownloadPath(id int64, file string) (string, error)
- func AbsSeriesTypeDir(st litres_integration.SeriesType) (string, error)
- func ArtsDetailsProperties() []string
- func DehydratedProperties() []string
- func IdNameProperties() []string
- func NewReduxReader(assets ...string) (kevlar.ReadableRedux, error)
- func NewReduxWriter(assets ...string) (kevlar.WriteableRedux, error)
- func PersonsRolesProperties() []string
- func ReduxProperties() []string
- func RelCoverFilename(id string, size litres_integration.CoverSize) string
- func VideoProperties() []string
- type ArtsReader
- func (ar *ArtsReader) ArtsDetails(id string) (artsDetails *litres_integration.ArtsDetails, err error)
- func (ar *ArtsReader) ArtsFiles(id string) (artsFiles *litres_integration.ArtsFiles, err error)
- func (ar *ArtsReader) ArtsQuotes(id string) (artsQuotes *litres_integration.ArtsQuotes, err error)
- func (ar *ArtsReader) ArtsReviews(id string) (artsReviews *litres_integration.ArtsReviews, err error)
- func (ar *ArtsReader) ArtsSimilar(id string) (artsSimilar *litres_integration.ArtsSimilar, err error)
- func (ar *ArtsReader) ArtsType() litres_integration.ArtsType
- func (ar *ArtsReader) CreatedAfter(timestamp int64) ([]string, error)
- func (ar *ArtsReader) CreatedOrModifiedAfter(timestamp int64) ([]string, error)
- func (ar *ArtsReader) Cut(id string) (bool, error)
- func (ar *ArtsReader) Get(id string) (io.ReadCloser, error)
- func (ar *ArtsReader) GetFromStorage(id string) (io.ReadCloser, error)
- func (ar *ArtsReader) Has(id string) (bool, error)
- func (ar *ArtsReader) IsModifiedAfter(id string, timestamp int64) (bool, error)
- func (ar *ArtsReader) Keys() ([]string, error)
- func (ar *ArtsReader) ModTime(id string) (int64, error)
- func (ar *ArtsReader) ModifiedAfter(timestamp int64) ([]string, error)
- func (ar *ArtsReader) ReadValue(id string) (interface{}, error)
- func (ar *ArtsReader) Set(id string, data io.Reader) error
Constants ¶
View Source
const ( Backups pathways.AbsDir = "backups" Metadata pathways.AbsDir = "metadata" Input pathways.AbsDir = "input" Covers pathways.AbsDir = "covers" Downloads pathways.AbsDir = "downloads" )
View Source
const ( Redux pathways.RelDir = "_redux" Contents pathways.RelDir = "contents" )
View Source
const ( IdProperty = "id" // arts history ArtsHistoryOrderProperty = "arts-history-order" ArtsHistoryEventTimeProperty = "arts-history-event-time" // arts details properties CoverUrlProperty = "cover-url" CoverAspectRatioProperty = "cover-aspect-ratio" TitleProperty = "title" SubtitleProperty = "subtitle" ArtTypeProperty = "art-type" PriceProperty = "price" MinAgeProperty = "min-age" SymbolsCountProperty = "symbols-count" LastUpdatedAtProperty = "last-updated-at" LastReleasedAtProperty = "last-released-at" AvailableFromProperty = "available-from" PersonsIdsProperty = "persons-ids" PersonsRolesProperty = "persons-roles" PersonFullNameProperty = "person-full-name" PersonUrlProperty = "person-url" RatedAvgProperty = "rated-avg" RatedTotalCountProperty = "rated-total-count" LinkedArtsIdsProperty = "linked-arts-ids" SeriesIdProperty = "series-ids" SeriesArtOrderProperty = "series-art-order" SeriesArtsCountProperty = "series-arts-count" SeriesNameProperty = "series-name" SeriesUrlProperty = "series-url" SeriesProperty = "series" DateWrittenAtProperty = "date-written-at" AlternativeVersionsProperty = "alternative-versions" HTMLAnnotationProperty = "html-annotation" HTMLAnnotationLitResProperty = "html-annotation-litres" FirstTimeSaleAtProperty = "first-time-sale-at" GenresIdsProperty = "genres-ids" GenreNameProperty = "genre-name" GenreUrlProperty = "genre-url" GenresProperty = "genres" TagsIdsProperty = "tags-ids" TagNameProperty = "tag-name" TagUrlProperty = "tag-url" TagsProperty = "tags" ISBNProperty = "isbn" PublicationDateProperty = "publication-date" YouTubeVideosProperty = "youtube-videos" VideoTitleProperty = "video-title" VideoDurationProperty = "video-duration" VideoErrorProperty = "video-error" ContentsUrlProperty = "contents-url" RegisteredAtProperty = "registered-at" TranslatedAtProperty = "translated-at" CurrentPagesOrSecondsProperty = "current-pages-or-seconds" PublisherIdProperty = "publisher-id" PublisherNameProperty = "publisher-name" PublisherUrlProperty = "publisher-url" PublishersProperty = "publishers" RightholdersIdsProperty = "rightholders-ids" RightholderNameProperty = "rightholder-name" RightholderUrlProperty = "rightholder-url" RightholdersProperty = "rightholders" // persons roles AuthorsProperty = "authors" IllustratorsProperty = "illustrators" PaintersProperty = "painters" PerformersProperty = "performers" ReadersProperty = "readers" TranslatorsProperty = "translators" // sorting SortProperty = "sort" DescendingProperty = "desc" // sync events SyncCompletedProperty = "sync-completed" // dehydrated images DehydratedListImageProperty = "dehydrated-list-image" DehydratedListImageModifiedProperty = "dehydrated-list-image-modified" DehydratedItemImageProperty = "dehydrated-item-image" DehydratedItemImageModifiedProperty = "dehydrated-item-image-modified" RepItemImageColorProperty = "rep-item-image-color" RepListImageColorProperty = "rep-list-image-color" // Litres links LitresBookLinksProperty = "litres-book-links" LitresAuthorLinksProperty = "litres-author-links" LitresSeriesLinksProperty = "litres-series-links" LitresPublishersLinksProperty = "litres-publishers-links" LitresRightholdersLinksProperty = "litres-rightholders-links" LitresGenresLinksProperty = "litres-genres-links" LitresTagsLinksProperty = "litres-tags-links" )
View Source
const (
DefaultCoverExt = ".jpg"
)
View Source
const DefaultFedorovRootDir = "/var/lib/fedorov"
Variables ¶
View Source
var ( CoverSizesDesc = []litres_integration.CoverSize{litres_integration.SizeMax, litres_integration.Size415, litres_integration.Size250} CoverSizesAsc = []litres_integration.CoverSize{litres_integration.Size250, litres_integration.Size415, litres_integration.SizeMax} )
Functions ¶
func AbsArtsTypeDir ¶ added in v0.2.82
func AbsArtsTypeDir(at litres_integration.ArtsType) (string, error)
func AbsAuthorTypeDir ¶ added in v0.3.0
func AbsAuthorTypeDir(at litres_integration.AuthorType) (string, error)
func AbsCookiesFilename ¶
func AbsCoverImagePath ¶ added in v0.2.81
func AbsCoverImagePath(id int64, size litres_integration.CoverSize) (string, error)
func AbsFileDownloadPath ¶ added in v0.2.81
func AbsSeriesTypeDir ¶ added in v0.3.0
func AbsSeriesTypeDir(st litres_integration.SeriesType) (string, error)
func ArtsDetailsProperties ¶ added in v0.3.32
func ArtsDetailsProperties() []string
func DehydratedProperties ¶ added in v0.3.61
func DehydratedProperties() []string
func IdNameProperties ¶ added in v0.3.25
func IdNameProperties() []string
func NewReduxReader ¶ added in v0.3.0
func NewReduxReader(assets ...string) (kevlar.ReadableRedux, error)
func NewReduxWriter ¶ added in v0.3.0
func NewReduxWriter(assets ...string) (kevlar.WriteableRedux, error)
func PersonsRolesProperties ¶ added in v0.3.20
func PersonsRolesProperties() []string
func ReduxProperties ¶
func ReduxProperties() []string
func RelCoverFilename ¶ added in v0.1.88
func RelCoverFilename(id string, size litres_integration.CoverSize) string
func VideoProperties ¶ added in v0.3.32
func VideoProperties() []string
Types ¶
type ArtsReader ¶ added in v0.3.0
type ArtsReader struct {
// contains filtered or unexported fields
}
func NewArtsReader ¶ added in v0.3.0
func NewArtsReader(at litres_integration.ArtsType) (*ArtsReader, error)
func (*ArtsReader) ArtsDetails ¶ added in v0.3.0
func (ar *ArtsReader) ArtsDetails(id string) (artsDetails *litres_integration.ArtsDetails, err error)
func (*ArtsReader) ArtsFiles ¶ added in v0.3.0
func (ar *ArtsReader) ArtsFiles(id string) (artsFiles *litres_integration.ArtsFiles, err error)
func (*ArtsReader) ArtsQuotes ¶ added in v0.3.0
func (ar *ArtsReader) ArtsQuotes(id string) (artsQuotes *litres_integration.ArtsQuotes, err error)
func (*ArtsReader) ArtsReviews ¶ added in v0.3.0
func (ar *ArtsReader) ArtsReviews(id string) (artsReviews *litres_integration.ArtsReviews, err error)
func (*ArtsReader) ArtsSimilar ¶ added in v0.3.0
func (ar *ArtsReader) ArtsSimilar(id string) (artsSimilar *litres_integration.ArtsSimilar, err error)
func (*ArtsReader) ArtsType ¶ added in v0.3.0
func (ar *ArtsReader) ArtsType() litres_integration.ArtsType
func (*ArtsReader) CreatedAfter ¶ added in v0.3.0
func (ar *ArtsReader) CreatedAfter(timestamp int64) ([]string, error)
func (*ArtsReader) CreatedOrModifiedAfter ¶ added in v0.3.12
func (ar *ArtsReader) CreatedOrModifiedAfter(timestamp int64) ([]string, error)
func (*ArtsReader) Get ¶ added in v0.3.0
func (ar *ArtsReader) Get(id string) (io.ReadCloser, error)
func (*ArtsReader) GetFromStorage ¶ added in v0.3.0
func (ar *ArtsReader) GetFromStorage(id string) (io.ReadCloser, error)
func (*ArtsReader) IsModifiedAfter ¶ added in v0.3.0
func (ar *ArtsReader) IsModifiedAfter(id string, timestamp int64) (bool, error)
func (*ArtsReader) Keys ¶ added in v0.3.0
func (ar *ArtsReader) Keys() ([]string, error)
func (*ArtsReader) ModTime ¶ added in v0.3.12
func (ar *ArtsReader) ModTime(id string) (int64, error)
func (*ArtsReader) ModifiedAfter ¶ added in v0.3.0
func (ar *ArtsReader) ModifiedAfter(timestamp int64) ([]string, error)
func (*ArtsReader) ReadValue ¶ added in v0.3.0
func (ar *ArtsReader) ReadValue(id string) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.