blob: 4ec4728c97bbdc8bcb7fd11581941f42c8484c07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package output
import (
"io"
"time"
"github.com/SayaAndy/saya-today-thumbnail-generator/internal/client/input"
)
type OutputClient interface {
GetWriter(path string, inputMetadata *input.MetadataStruct) (io.WriteCloser, error)
ReadMetadata(string) (*MetadataStruct, error)
IsMissing(path string) bool
}
type MetadataStruct struct {
Name string
StorageType string
Hash string
HashOriginal string
ContentType string
FirstCreated time.Time
LastModified time.Time
Misc map[string]string
}
|