Documentation ¶
Index ¶
Constants ¶
View Source
const ( IconSize = 256 IconType = "icon" MediumSize = 2048 MediumType = "medium" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityCache ¶
type EntityCache struct {
// contains filtered or unexported fields
}
func NewEntityCache ¶
func NewEntityCache(shelf *shelf.Shelf, path string) *EntityCache
func (*EntityCache) FetchIcon ¶
func (cache *EntityCache) FetchIcon(ent shelf.Entity) (string, error)
func (*EntityCache) FetchMediumThumbnail ¶
func (cache *EntityCache) FetchMediumThumbnail(ent shelf.Entity) (string, error)
type MomentCache ¶
type MomentCache struct {
// contains filtered or unexported fields
}
func NewMomentCache ¶
func NewMomentCache(shelf *shelf.Shelf) *MomentCache
func (*MomentCache) Fetch ¶
func (cache *MomentCache) Fetch(m *shelf.Moment) *MomentCacheItem
func (*MomentCache) Preview ¶
func (cache *MomentCache) Preview(m *shelf.Moment) *MomentCacheItem
type MomentCacheItem ¶
func (*MomentCacheItem) Content ¶
func (cache *MomentCacheItem) Content() string
func (*MomentCacheItem) Embeds ¶
func (cache *MomentCacheItem) Embeds() []shelf.Entity
func (*MomentCacheItem) FindFirstImage ¶
func (cache *MomentCacheItem) FindFirstImage() *shelf.ImageEntity
Click to show internal directories.
Click to hide internal directories.