use buffers as interface to storage
1 file changed, 3 insertions(+), 2 deletions(-)
changed files
M internal/storage/file.go → internal/storage/file.go
@@ -1,8 +1,9 @@ package storage import ( - "io" "time" + + "go.alanpearce.eu/website/internal/buffer" ) type File struct {@@ -10,7 +11,7 @@ Path string ContentType string LastModified time.Time Etag string - Encodings map[string]io.ReadSeekCloser + Encodings map[string]*buffer.Buffer } func (f *File) AvailableEncodings() []string {