Versions in this module Expand all Collapse all v1 v1.0.0 Jun 20, 2021 Changes in this version + const IconSize + const IconType + const MediumSize + const MediumType + type EntityCache struct + func NewEntityCache(shelf *shelf.Shelf, path string) *EntityCache + func (cache *EntityCache) FetchIcon(ent shelf.Entity) (string, error) + func (cache *EntityCache) FetchMediumThumbnail(ent shelf.Entity) (string, error) + func (cache *EntityCache) Remove(entity shelf.Entity) error + type MomentCache struct + func NewMomentCache(shelf *shelf.Shelf) *MomentCache + func (cache *MomentCache) Fetch(m *shelf.Moment) *MomentCacheItem + func (cache *MomentCache) Preview(m *shelf.Moment) *MomentCacheItem + func (cache *MomentCache) Save(origTime time.Time, m *shelf.Moment) error + type MomentCacheItem struct + Moment *shelf.Moment + func (cache *MomentCacheItem) Content() string + func (cache *MomentCacheItem) Embeds() []shelf.Entity + func (cache *MomentCacheItem) FindFirstImage() *shelf.ImageEntity