imgcache

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ImageCacheStatusExist = "exist"
View Source
const ImageCacheStatusNone = "none"
View Source
const ImageCacheStatusSkip = "skip"

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageCacheEntry

type ImageCacheEntry struct {
	ItemId string
	Status ImageCacheStatus
	Fav    string
}

type ImageCacheRepo

type ImageCacheRepo struct {
	Index []*ImageCacheEntry
	// contains filtered or unexported fields
}

func NewRepo

func NewRepo(wf *aw.Workflow) *ImageCacheRepo

func (*ImageCacheRepo) CacheImages

func (r *ImageCacheRepo) CacheImages()

func (*ImageCacheRepo) GetImagePath

func (r *ImageCacheRepo) GetImagePath(id string) string

func (*ImageCacheRepo) SetFavFor

func (r *ImageCacheRepo) SetFavFor(id string, rawJson string)

func (*ImageCacheRepo) StoreIndexFile

func (r *ImageCacheRepo) StoreIndexFile()

type ImageCacheStatus

type ImageCacheStatus string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL