Versions in this module Expand all Collapse all v0 v0.10.0 Feb 11, 2017 v0.7.0 Jan 7, 2015 Changes in this version + var SizeLarge = ThumbDimension + var SizeMedium = ThumbDimension + var SizeSmall = ThumbDimension + type ConversionService struct + func NewConversionService(logger logger.Logger, repository dataaccess.Repository, thumbnailIndex *Index) *ConversionService + type Index struct + Thumbs map[string]Thumbs + func EmptyIndex() *Index + func NewIndex(logger logger.Logger, indexFilePath, thumbnailFolder string) *Index + func (i *Index) GetThumbnailFilepath(thumb Thumb) string + func (i *Index) GetThumbnailFolder() string + func (i *Index) GetThumbs(thumbnailRoute string) (thumbs Thumbs, exists bool) + func (i *Index) SetThumbs(thumbnailRoute string, thumbs Thumbs) + type Thumb struct + Dimensions ThumbDimension + Path string + Route string + func (t Thumb) String() string + func (t Thumb) ThumbRoute() route.Route + type ThumbDimension struct + MaxHeight uint + MaxWidth uint + func GetThumbnailDimensionsFromRoute(routeWithDimensions route.Route) (baseRoute route.Route, dimensions ThumbDimension) + func (t ThumbDimension) String() string + type Thumbs map[string]Thumb + func (thumbs Thumbs) GetThumbBySize(dimensions ThumbDimension) (Thumb, bool)