From 3162ceaa0f7997742f8c2fce1c9660e8e86ad5bb Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 29 Jan 2025 22:00:45 +0100 Subject: use buffers as interface to storage --- internal/storage/file.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/storage/file.go') diff --git a/internal/storage/file.go b/internal/storage/file.go index f588bf3..38824b6 100644 --- a/internal/storage/file.go +++ b/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 @@ type File struct { ContentType string LastModified time.Time Etag string - Encodings map[string]io.ReadSeekCloser + Encodings map[string]*buffer.Buffer } func (f *File) AvailableEncodings() []string { -- cgit 1.4.1