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 AbsExportFilename() (string, error)
- func AbsFileDownloadPath(id int64, file string) (string, error)
- func AbsImportFilename() (string, error)
- func AbsSeriesTypeDir(st litres_integration.SeriesType) (string, error)
- func ArtsDetailsReduxProperties() []string
- func ImportedProperties() []string
- func LegacyReduxProperties() []string
- func NewReduxReader(assets ...string) (kvas.ReadableRedux, error)
- func NewReduxWriter(assets ...string) (kvas.WriteableRedux, error)
- func ReduxProperties() []string
- func RelCoverFilename(id string, size litres_integration.CoverSize) 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
- func (ar *ArtsReader) CurrentModTime(id string) (int64, 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
- func (ar *ArtsReader) IndexCurrentModTime() (int64, error)
- func (ar *ArtsReader) IndexRefresh() error
- func (ar *ArtsReader) IsModifiedAfter(id string, timestamp int64) bool
- func (ar *ArtsReader) Keys() []string
- func (ar *ArtsReader) ModifiedAfter(timestamp int64, excludeCreated bool) []string
- func (ar *ArtsReader) ReadValue(id string) (interface{}, error)
- func (ar *ArtsReader) Set(id string, data io.Reader) error
- func (ar *ArtsReader) VetIndexMissing(fix bool, tpw nod.TotalProgressWriter) ([]string, error)
- func (ar *ArtsReader) VetIndexOnly(fix bool, tpw nod.TotalProgressWriter) ([]string, error)
Constants ¶
View Source
const ( Backups pasu.AbsDir = "backups" Metadata pasu.AbsDir = "metadata" Input pasu.AbsDir = "input" Output pasu.AbsDir = "output" Covers pasu.AbsDir = "covers" Downloads pasu.AbsDir = "downloads" Imported pasu.AbsDir = "_imported" )
View Source
const ( Redux pasu.RelDir = "_redux" Contents pasu.RelDir = "contents" )
View Source
const ( IdProperty = "id" // arts history ArtsHistoryOrderProperty = "arts-history-order" ArtsHistoryEventTimeProperty = "arts-history-event-time" // arts details properties CoverUrlProperty = "cover-url" TitleProperty = "title" 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" DateWrittenAtProperty = "date-written-at" AlternativeVersionsProperty = "alternative-versions" HTMLAnnotationProperty = "html-annotation" HTMLAnnotationLitResProperty = "html-annotation-litres" FirstTimeSaleAtProperty = "first-time-sale-at" LiveLibRatedAvgProperty = "livelib-rated-avg" LiveLibRatedTotalCountProperty = "livelib-rated-total-count" GenresIdsProperty = "genres-ids" GenreNameProperty = "genre-name" GenreUrlProperty = "genre-url" TagsIdsProperty = "tags-ids" TagNameProperty = "tag-name" TagUrlProperty = "tag-url" ISBNProperty = "isbn" PublicationDateProperty = "publication-date" YouTubeVideosProperty = "youtube-videos" ContentsUrlProperty = "contents-url" RegisteredAtProperty = "registered-at" TranslatedAtProperty = "translated-at" CurrentPagesOrSecondsProperty = "current-pages-or-seconds" PublisherIdProperty = "publisher-id" PublisherNameProperty = "publisher-name" PublisherUrlProperty = "publisher-url" RightholdersIdsProperty = "rightholders-ids" RightholderNameProperty = "rightholder-name" RightholderUrlProperty = "rightholder-url" //legacy reduced from detail page LegacyAuthorsProperty = "authors" LegacyDescriptionProperty = "description" LegacyDownloadLinksProperty = "download-links" LegacyDownloadTitlesProperty = "download-titles" LegacySequenceNameProperty = "sequence-name" LegacySequenceNumberProperty = "sequence-number" LegacyDateReleasedProperty = "date-released" LegacyDateTranslatedProperty = "date-translated" LegacyDateCreatedProperty = "date-created" LegacyAgeRatingProperty = "age-rating" LegacyVolumeProperty = "volume" LegacyDurationProperty = "duration" LegacyISBNProperty = "isbn" LegacyTranslatorsProperty = "translators" LegacyReadersProperty = "readers" LegacyIllustratorsProperty = "illustrators" LegacyCopyrightHoldersProperty = "copyright-holders" LegacyComposersProperty = "composers" LegacyAdapterProperty = "adapter" LegacyPerformersProperty = "performers" LegacyDirectorsProperty = "directors" LegacySoundDirectorsProperty = "sound-directors" LegacyPublishersProperty = "publishers" LegacyTotalSizeProperty = "total-size" LegacyTotalPagesProperty = "total-pages" LegacyMissingDetailsIdsProperty = "missing-details-ids" LegacyBookTypeProperty = "book-type" LegacyGenresProperty = "genres" LegacyTagsProperty = "tags" LegacyImageProperty = "image" LegacyLanguageProperty = "language" // local properties LocalTagsProperty = "local-tags" BookCompletedProperty = "book-completed" // sorting SortProperty = "sort" DescendingProperty = "desc" // sync events SyncCompletedProperty = "sync-completed" // imported ImportedProperty = "imported" DataSourceProperty = "data-source" // dehydrated images DehydratedListImageProperty = "dehydrated-list-image" DehydratedListImageModifiedProperty = "dehydrated-list-image-modified" DehydratedItemImageProperty = "dehydrated-item-image" DehydratedItemImageModifiedProperty = "dehydrated-item-image-modified" )
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 AbsExportFilename ¶ added in v0.1.73
func AbsFileDownloadPath ¶ added in v0.2.81
func AbsImportFilename ¶ added in v0.1.73
func AbsSeriesTypeDir ¶ added in v0.3.0
func AbsSeriesTypeDir(st litres_integration.SeriesType) (string, error)
func ArtsDetailsReduxProperties ¶ added in v0.3.0
func ArtsDetailsReduxProperties() []string
func ImportedProperties ¶ added in v0.2.48
func ImportedProperties() []string
func LegacyReduxProperties ¶ added in v0.3.0
func LegacyReduxProperties() []string
func NewReduxReader ¶ added in v0.3.0
func NewReduxReader(assets ...string) (kvas.ReadableRedux, error)
func NewReduxWriter ¶ added in v0.3.0
func NewReduxWriter(assets ...string) (kvas.WriteableRedux, error)
func ReduxProperties ¶
func ReduxProperties() []string
func RelCoverFilename ¶ added in v0.1.88
func RelCoverFilename(id string, size litres_integration.CoverSize) 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
func (*ArtsReader) CurrentModTime ¶ added in v0.3.0
func (ar *ArtsReader) CurrentModTime(id string) (int64, 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) Has ¶ added in v0.3.0
func (ar *ArtsReader) Has(id string) bool
func (*ArtsReader) IndexCurrentModTime ¶ added in v0.3.0
func (ar *ArtsReader) IndexCurrentModTime() (int64, error)
func (*ArtsReader) IndexRefresh ¶ added in v0.3.0
func (ar *ArtsReader) IndexRefresh() error
func (*ArtsReader) IsModifiedAfter ¶ added in v0.3.0
func (ar *ArtsReader) IsModifiedAfter(id string, timestamp int64) bool
func (*ArtsReader) Keys ¶ added in v0.3.0
func (ar *ArtsReader) Keys() []string
func (*ArtsReader) ModifiedAfter ¶ added in v0.3.0
func (ar *ArtsReader) ModifiedAfter(timestamp int64, excludeCreated bool) []string
func (*ArtsReader) ReadValue ¶ added in v0.3.0
func (ar *ArtsReader) ReadValue(id string) (interface{}, error)
func (*ArtsReader) VetIndexMissing ¶ added in v0.3.0
func (ar *ArtsReader) VetIndexMissing(fix bool, tpw nod.TotalProgressWriter) ([]string, error)
func (*ArtsReader) VetIndexOnly ¶ added in v0.3.0
func (ar *ArtsReader) VetIndexOnly(fix bool, tpw nod.TotalProgressWriter) ([]string, error)
Click to show internal directories.
Click to hide internal directories.