Versions in this module Expand all Collapse all v0 v0.1.6 Sep 10, 2020 Changes in this version + type FileSystem struct + func NewFileSystemStorage(cfg config.FileSystemStorage, logger log.Logger) *FileSystem + func (s *FileSystem) BuildKey(r Request) string + func (s *FileSystem) Get(username string, key string) []byte + func (s *FileSystem) Set(username string, key string, img []byte) error + type InMemory struct + func NewInMemoryStorage() InMemory + func (s InMemory) BuildKey(r Request) string + func (s InMemory) Get(username string, key string) []byte + func (s InMemory) Set(username string, key string, thumbnail []byte) error + type Request struct + ETag string + Resolution resolution.Resolution + Types []string + type Storage interface + BuildKey func(Request) string + Get func(string, string) []byte + Set func(string, string, []byte) error