Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
// Get gets the thumbnail if stored in the cache
Get(file, etag string, width, height int) ([]byte, error)
// Set adds the thumbnail in the cache
Set(file, etag string, width, height int, data []byte) error
}
Cache is the interface for a thumbnail cache
func NewNoCache ¶
func NewNoCache() Cache
NewNoCache creates a dummy cache that does not cache anything
type ErrNotFound ¶
type ErrNotFound struct{}
ErrNotFound is the error returned by the cache when the requested thumbnail is not in the cache
Click to show internal directories.
Click to hide internal directories.