mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-01 18:01:23 -05:00
20 lines
375 B
Go
20 lines
375 B
Go
package storage
|
|
|
|
import (
|
|
"image"
|
|
)
|
|
|
|
// Request combines different attributes needed for storage operations.
|
|
type Request struct {
|
|
ETag string
|
|
Types []string
|
|
Resolution image.Rectangle
|
|
}
|
|
|
|
// Storage defines the interface for a thumbnail store.
|
|
type Storage interface {
|
|
Get(string, string) []byte
|
|
Set(string, string, []byte) error
|
|
BuildKey(Request) string
|
|
}
|