implement thumbnail support for txt files

This commit is contained in:
David Christofas
2021-04-29 13:48:01 +02:00
parent 9ddfab8fbd
commit 12b4a26385
16 changed files with 160 additions and 59 deletions
@@ -2,7 +2,7 @@ package imgsource
import (
"context"
"image"
"io"
)
type key int
@@ -13,7 +13,7 @@ const (
// Source defines the interface for image sources
type Source interface {
Get(ctx context.Context, path string) (image.Image, error)
Get(ctx context.Context, path string) (io.ReadCloser, error)
}
// ContextSetAuthorization puts the authorization in the context.