about summary refs log tree commit diff stats
path: root/internal/storage/file.go
blob: f588bf3edf7b5574f44abe341b9b91519e3fddf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package storage

import (
	"io"
	"time"
)

type File struct {
	Path         string
	ContentType  string
	LastModified time.Time
	Etag         string
	Encodings    map[string]io.ReadSeekCloser
}

func (f *File) AvailableEncodings() []string {
	encs := make([]string, 0, len(f.Encodings))
	for enc := range f.Encodings {
		encs = append(encs, enc)
	}

	return encs
}