first prototype of the thumbnail service

Currently uses in memory caching and loads the file from the local
filesystem.
This commit is contained in:
David Christofas
2020-03-03 16:40:09 +01:00
parent 883778d883
commit a98df0b11f
11 changed files with 214 additions and 15 deletions
+11
View File
@@ -0,0 +1,11 @@
package cache
import (
"image"
)
// Cache defines the interface for a thumbnail cache.
type Cache interface {
Get(key string) image.Image
Set(key string, thumbnail image.Image) (image.Image, error)
}